change log for rtems (2010-07-16)

rtems-vc at rtems.org rtems-vc at rtems.org
Fri Jul 16 10:15:44 UTC 2010


 *sh*:
2010-07-16	Sebastian Huber <Sebastian.Huber at embedded-brains.de>

	* psxfile01/test.c: Avoid NULL pointer access.

M  1.295  testsuites/psxtests/ChangeLog
M   1.28  testsuites/psxtests/psxfile01/test.c

diff -u rtems/testsuites/psxtests/ChangeLog:1.294 rtems/testsuites/psxtests/ChangeLog:1.295
--- rtems/testsuites/psxtests/ChangeLog:1.294	Thu Jul 15 08:59:25 2010
+++ rtems/testsuites/psxtests/ChangeLog	Fri Jul 16 04:23:42 2010
@@ -1,3 +1,7 @@
+2010-07-16	Sebastian Huber <Sebastian.Huber at embedded-brains.de>
+
+	* psxfile01/test.c: Avoid NULL pointer access.
+
 2010-07-15	Bharath Suri <bharath.s.jois at gmail.com>
 
 	PR 1617/testing

diff -u rtems/testsuites/psxtests/psxfile01/test.c:1.27 rtems/testsuites/psxtests/psxfile01/test.c:1.28
--- rtems/testsuites/psxtests/psxfile01/test.c:1.27	Thu Jul 15 08:59:25 2010
+++ rtems/testsuites/psxtests/psxfile01/test.c	Fri Jul 16 04:23:42 2010
@@ -339,10 +339,10 @@
   rtems_test_assert( fd == -1 );
   rtems_test_assert( errno == EINVAL );
 
-  puts( "Exercise the reentrant version _link_r -- Expect EFAULT" );
-  status = _link_r( NULL, NULL, NULL );
+  puts( "Exercise the reentrant version _link_r -- Expect EEXIST" );
+  status = _link_r( NULL, "", "" );
   rtems_test_assert( status == -1 );
-  rtems_test_assert( errno == EFAULT );
+  rtems_test_assert( errno == EEXIST );
 
   puts( "Unlink /tmp/bha using the reentrant version -- OK" );
   status = _unlink_r( NULL, "/tmp/bha" );


 *sh*:
2010-07-16	Sebastian Huber <sebastian.huber at embedded-brains.de>

	* libcsupport/src/link.c: Do not overwrite errno with return status.

M 1.2515  cpukit/ChangeLog
M   1.19  cpukit/libcsupport/src/link.c

diff -u rtems/cpukit/ChangeLog:1.2514 rtems/cpukit/ChangeLog:1.2515
--- rtems/cpukit/ChangeLog:1.2514	Fri Jul 16 03:31:33 2010
+++ rtems/cpukit/ChangeLog	Fri Jul 16 04:24:51 2010
@@ -1,5 +1,9 @@
 2010-07-16	Sebastian Huber <sebastian.huber at embedded-brains.de>
 
+	* libcsupport/src/link.c: Do not overwrite errno with return status.
+
+2010-07-16	Sebastian Huber <sebastian.huber at embedded-brains.de>
+
 	* score/include/rtems/score/basedefs.h: New file.
 	* score/Makefile.am, score/preinstall.am: Reflect change above.
 	* score/include/rtems/score/percpu.h: Include <rtems/score/cpu.h>.

diff -u rtems/cpukit/libcsupport/src/link.c:1.18 rtems/cpukit/libcsupport/src/link.c:1.19
--- rtems/cpukit/libcsupport/src/link.c:1.18	Thu Jul  1 10:12:37 2010
+++ rtems/cpukit/libcsupport/src/link.c	Fri Jul 16 04:24:51 2010
@@ -51,7 +51,7 @@
   result = (*parent_loc.ops->evalformake_h)( &new[i], &parent_loc, &name_start );
   if ( result != 0 ) {
     rtems_filesystem_freenode( &existing_loc );
-    rtems_set_errno_and_return_minus_one( result );
+    return -1;
   }
 
   /*



--

Generated by Deluxe Loginfo [http://www.codewiz.org/projects/index.html#loginfo] 2.122 by Bernardo Innocenti <bernie at develer.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/vc/attachments/20100716/79a3aa65/attachment.html>


More information about the vc mailing list