<!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-04-28)</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>joel</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2010-04-28 Joel Sherrill <joel.sherrill@oarcorp.com>

        * libcsupport/src/chdir.c: Check for NULL pointer.
</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.2270&r2=text&tr2=1.2271&diff_format=h">M</a></td><td width='1%'>1.2271</td><td width='100%'>cpukit/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libcsupport/src/chdir.c.diff?r1=text&tr1=1.13&r2=text&tr2=1.14&diff_format=h">M</a></td><td width='1%'>1.14</td><td width='100%'>cpukit/libcsupport/src/chdir.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/ChangeLog:1.2270 rtems/cpukit/ChangeLog:1.2271
--- rtems/cpukit/ChangeLog:1.2270       Sun Apr 25 21:43:30 2010
+++ rtems/cpukit/ChangeLog      Wed Apr 28 10:01:31 2010
</font><font color='#997700'>@@ -1,3 +1,7 @@
</font><font color='#000088'>+2010-04-28    Joel Sherrill <joel.sherrill@oarcorp.com>
+
+       * libcsupport/src/chdir.c: Check for NULL pointer.
+
</font> 2010-04-25        Joel Sherrill <joel.sherrilL@OARcorp.com>
 
        * libfs/src/rfs/rtems-rfs-bitmaps-ut.c: Fix warning.

<font color='#006600'>diff -u rtems/cpukit/libcsupport/src/chdir.c:1.13 rtems/cpukit/libcsupport/src/chdir.c:1.14
--- rtems/cpukit/libcsupport/src/chdir.c:1.13   Thu Jun 11 20:53:32 2009
+++ rtems/cpukit/libcsupport/src/chdir.c        Wed Apr 28 10:01:31 2010
</font><font color='#997700'>@@ -1,7 +1,7 @@
</font> /*
  *  chdir() - POSIX 1003.1b - 5.2.1 - Change Current Working Directory
  *
<font color='#880000'>- *  COPYRIGHT (c) 1989-1999.
</font><font color='#000088'>+ *  COPYRIGHT (c) 1989-2010.
</font>  *  On-Line Applications Research Corporation (OAR).
  *
  *  The license and distribution terms for this file may be
<font color='#997700'>@@ -30,10 +30,12 @@
</font>   rtems_filesystem_location_info_t  loc;
   int                               result;
 
<font color='#000088'>+  if ( !pathname )
+    rtems_set_errno_and_return_minus_one( EFAULT );
+
</font>   /*
    *  Get the node where we wish to go.
    */
<font color='#880000'>-
</font>   result = rtems_filesystem_evaluate_path(
     pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true );
   if ( result != 0 )
<font color='#997700'>@@ -42,7 +44,6 @@
</font>   /*
    * Verify you can change directory into this node.
    */
<font color='#880000'>-
</font>   if ( !loc.ops->node_type_h ) {
     rtems_filesystem_freenode( &loc );
     rtems_set_errno_and_return_minus_one( ENOTSUP );
</pre>
<p> </p>
<a name='cs2'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
 <font color='#bb2222'><strong>joel</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2010-04-28 Joel Sherrill <joel.sherrill@oarcorp.com>

        * psxfile01/test.c: Add check for errno on chdir(NULL).
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtests/ChangeLog.diff?r1=text&tr1=1.260&r2=text&tr2=1.261&diff_format=h">M</a></td><td width='1%'>1.261</td><td width='100%'>testsuites/psxtests/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtests/psxfile01/test.c.diff?r1=text&tr1=1.20&r2=text&tr2=1.21&diff_format=h">M</a></td><td width='1%'>1.21</td><td width='100%'>testsuites/psxtests/psxfile01/test.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/testsuites/psxtests/ChangeLog:1.260 rtems/testsuites/psxtests/ChangeLog:1.261
--- rtems/testsuites/psxtests/ChangeLog:1.260   Sun Apr 25 14:53:38 2010
+++ rtems/testsuites/psxtests/ChangeLog Wed Apr 28 10:01:51 2010
</font><font color='#997700'>@@ -1,3 +1,7 @@
</font><font color='#000088'>+2010-04-28    Joel Sherrill <joel.sherrill@oarcorp.com>
+
+       * psxfile01/test.c: Add check for errno on chdir(NULL).
+
</font> 2010-04-25        Joel Sherrill <joel.sherrill@oarcorp.com>
 
        * psxrdwrv/test.c: Use SIZE_MAX not SSIZE_MAX.

<font color='#006600'>diff -u rtems/testsuites/psxtests/psxfile01/test.c:1.20 rtems/testsuites/psxtests/psxfile01/test.c:1.21
--- rtems/testsuites/psxtests/psxfile01/test.c:1.20     Tue Dec  8 11:52:53 2009
+++ rtems/testsuites/psxtests/psxfile01/test.c  Wed Apr 28 10:01:51 2010
</font><font color='#997700'>@@ -10,7 +10,7 @@
</font>  *    /dev
  *    /dev/XXX   [where XXX includes at least console]
  *
<font color='#880000'>- *  COPYRIGHT (c) 1989-2009.
</font><font color='#000088'>+ *  COPYRIGHT (c) 1989-2010.
</font>  *  On-Line Applications Research Corporation (OAR).
  *
  *  The license and distribution terms for this file may be
<font color='#997700'>@@ -220,6 +220,7 @@
</font>   /* test rtems_filesystem_evaluate_path by sending NULL path */
   status = chdir( NULL );
   rtems_test_assert( status == -1 );
<font color='#000088'>+  rtems_test_assert( errno == EFAULT );
</font> 
   /*
    *  Now switch gears and exercise rmdir().
</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>