<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>change log for rtems (2010-05-07)</title>
</head>
<body text='#000000' bgcolor='#ffffff'>
<a name='cs1'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
 <font color='#bb2222'><strong>sh</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2010-05-07 Arnout Vandecappelle <arnout@mind.be>

        PR 1511/networking
        * ftpd/ftpd.c: Abort RETR for directories.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/ChangeLog.diff?r1=text&tr1=1.2290&r2=text&tr2=1.2291&diff_format=h">M</a></td><td width='1%'>1.2291</td><td width='100%'>cpukit/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/ftpd/ftpd.c.diff?r1=text&tr1=1.22&r2=text&tr2=1.23&diff_format=h">M</a></td><td width='1%'>1.23</td><td width='100%'>cpukit/ftpd/ftpd.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/ChangeLog:1.2290 rtems/cpukit/ChangeLog:1.2291
--- rtems/cpukit/ChangeLog:1.2290       Mon May  3 04:13:36 2010
+++ rtems/cpukit/ChangeLog      Fri May  7 04:07:17 2010
</font><font color='#997700'>@@ -1,3 +1,8 @@
</font><font color='#000088'>+2010-05-07    Arnout Vandecappelle <arnout@mind.be>
+
+       PR 1511/networking
+       * ftpd/ftpd.c: Abort RETR for directories.
+
</font> 2010-05-03        Sebastian Huber <sebastian.huber@embedded-brains.de>
 
        * sapi/include/confdefs.h: New define CONFIGURE_SEMAPHORES for the

<font color='#006600'>diff -u rtems/cpukit/ftpd/ftpd.c:1.22 rtems/cpukit/ftpd/ftpd.c:1.23
--- rtems/cpukit/ftpd/ftpd.c:1.22       Fri Mar 12 10:26:14 2010
+++ rtems/cpukit/ftpd/ftpd.c    Fri May  7 04:07:17 2010
</font><font color='#997700'>@@ -795,6 +795,7 @@
</font>   int                 s = -1;
   int                 fd = -1;
   char                buf[FTPD_DATASIZE];
<font color='#000088'>+  struct stat         stat_buf;
</font>   int                 res = 0;
 
   if(!can_read())
<font color='#997700'>@@ -809,6 +810,14 @@
</font>     return;
   }
 
<font color='#000088'>+  if (fstat(fd, &stat_buf) == 0 && S_ISDIR(stat_buf.st_mode))
+  {
+    if (-1 != fd)
+      close(fd);
+    send_reply(info, 550, "Is a directory.");
+    return;
+  }
+
</font>   send_mode_reply(info);
 
   s = data_socket(info);
</pre>
<p> </p>

<p>--<br />
<small>Generated by <a href="http://www.codewiz.org/projects/index.html#loginfo">Deluxe Loginfo</a> 2.122 by Bernardo Innocenti <bernie@develer.com></small></p>
</body>
</html>