diff options
Diffstat (limited to 'cpukit/libcsupport/src/rmdir.c')
-rw-r--r-- | cpukit/libcsupport/src/rmdir.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cpukit/libcsupport/src/rmdir.c b/cpukit/libcsupport/src/rmdir.c index 52308f7b29..e0ca5956be 100644 --- a/cpukit/libcsupport/src/rmdir.c +++ b/cpukit/libcsupport/src/rmdir.c @@ -39,6 +39,12 @@ int rmdir( if ( result != 0 ) return -1; + result = rtems_filesystem_evaluate_parent(RTEMS_LIBIO_PERMS_WRITE, &loc ); + if (result != 0){ + rtems_filesystem_freenode( &loc ); + return -1; + } + /* * Verify you can remove this node as a directory. */ |