summaryrefslogtreecommitdiffstats
path: root/cpukit
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 /cpukit
parentff79cc570e724e5f39af535e40d3d25889f42d62 (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 'cpukit')
-rw-r--r--cpukit/libcsupport/src/chdir.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/libcsupport/src/chdir.c b/cpukit/libcsupport/src/chdir.c
index ca20919e93..a8322e91d0 100644
--- a/cpukit/libcsupport/src/chdir.c
+++ b/cpukit/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;