diff options
Diffstat (limited to '')
-rw-r--r-- | cpukit/libcsupport/src/chmod.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/libcsupport/src/chmod.c b/cpukit/libcsupport/src/chmod.c index 0535edfebd..1007be6b26 100644 --- a/cpukit/libcsupport/src/chmod.c +++ b/cpukit/libcsupport/src/chmod.c @@ -37,7 +37,7 @@ int chmod( status = rtems_filesystem_evaluate_path( path, 0, &loc, TRUE ); if ( status != 0 ) return -1; - + if ( !loc.handlers ){ rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( EBADF ); @@ -51,6 +51,6 @@ int chmod( result = (*loc.handlers->fchmod_h)( &loc, mode ); rtems_filesystem_freenode( &loc ); - + return result; } |