diff options
author | Jennifer Averett <Jennifer.Averett@OARcorp.com> | 2003-11-25 17:26:45 +0000 |
---|---|---|
committer | Jennifer Averett <Jennifer.Averett@OARcorp.com> | 2003-11-25 17:26:45 +0000 |
commit | de691e68f72c525b1204e8e1a6ea24261ea6d124 (patch) | |
tree | dbe503fb3816bfd59d30ccb531435beeb3ff3101 /cpukit/libcsupport/src/rmdir.c | |
parent | 2003-11-25 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-de691e68f72c525b1204e8e1a6ea24261ea6d124.tar.bz2 |
2003-11-25 Jennifer Averett <jennifer@OARcorp.com>
PR 519/filesystem
* include/rtems/libio_.h, src/eval.c, src/rmdir.c, src/unlink.c: Check
write permissions in parent directory for file or directory delete
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. */ |