summaryrefslogtreecommitdiffstats
path: root/c/src/exec/libcsupport
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2001-11-07 23:54:59 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2001-11-07 23:54:59 +0000
commitbc2db66fcb1635b41b453e953e8332bbe97b81c7 (patch)
tree6bf47ab8883c4943351834e9c3a5c47fe77e00dd /c/src/exec/libcsupport
parent2001-11-07 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-bc2db66fcb1635b41b453e953e8332bbe97b81c7.tar.bz2
2001-11-07 Jennifer Averett <jennifer@OARcorp.com>
Reported by Ibragimov Ilya <ibr@oktet.ru> and tracked as PR63. * libc/chdir.c: Check for search/execute permissions on chdir. This requires passing RTEMS_LIBIO_PERMS_SEARCH to rtems_filesystem_evaluate_path().
Diffstat (limited to 'c/src/exec/libcsupport')
-rw-r--r--c/src/exec/libcsupport/src/chdir.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/c/src/exec/libcsupport/src/chdir.c b/c/src/exec/libcsupport/src/chdir.c
index ca20919e93..a8322e91d0 100644
--- a/c/src/exec/libcsupport/src/chdir.c
+++ b/c/src/exec/libcsupport/src/chdir.c
@@ -33,7 +33,8 @@ int chdir(
* Get the node where we wish to go.
*/
- result = rtems_filesystem_evaluate_path( pathname, 0, &loc, TRUE );
+ result = rtems_filesystem_evaluate_path(
+ pathname, RTEMS_LIBIO_PERMS_SEARCH, &loc, TRUE );
if ( result != 0 )
return -1;