diff options
author | Chris Johns <chrisj@rtems.org> | 2010-05-20 03:10:41 +0000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2010-05-20 03:10:41 +0000 |
commit | ce92a825c40cf68fa6737f7c69480a55b44524f4 (patch) | |
tree | 7c7e6ffcf4d350d4bc7199fcc88de693110b31c2 /cpukit/libcsupport | |
parent | 2010-05-18 Joel Sherrill <joel.sherrilL@OARcorp.com> (diff) | |
download | rtems-ce92a825c40cf68fa6737f7c69480a55b44524f4.tar.bz2 |
2010-05-20 Bharath Suri <bharath.s.jois@gmail.com>
* libcsupport/src/_rename_r.c: Avoid overwriting of errno by
_rename_r to invalid values.
Diffstat (limited to 'cpukit/libcsupport')
-rw-r--r-- | cpukit/libcsupport/src/_rename_r.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/libcsupport/src/_rename_r.c b/cpukit/libcsupport/src/_rename_r.c index d12355c8d0..f1e73fc18d 100644 --- a/cpukit/libcsupport/src/_rename_r.c +++ b/cpukit/libcsupport/src/_rename_r.c @@ -70,7 +70,7 @@ int _rename_r( if ( result != 0 ) { if ( free_old_parentloc ) rtems_filesystem_freenode( &old_parent_loc ); - rtems_set_errno_and_return_minus_one( result ); + return -1; } /* @@ -92,7 +92,7 @@ int _rename_r( if ( free_old_parentloc ) rtems_filesystem_freenode( &old_parent_loc ); rtems_filesystem_freenode( &old_loc ); - rtems_set_errno_and_return_minus_one( result ); + return -1; } /* |