summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2001-11-08 00:00:01 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2001-11-08 00:00:01 +0000
commita637c087f499bed287890b449ef88e6b8e755fb2 (patch)
treeea808d28378662c79f0a43ada62c7722bb4b5400
parent2001-11-07 Jennifer Averett <jennifer@OARcorp.com> (diff)
downloadrtems-a637c087f499bed287890b449ef88e6b8e755fb2.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().
-rw-r--r--c/src/lib/libc/chdir.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/c/src/lib/libc/chdir.c b/c/src/lib/libc/chdir.c
index 4ab5c84cb8..d20c7f6793 100644
--- a/c/src/lib/libc/chdir.c
+++ b/c/src/lib/libc/chdir.c
@@ -29,7 +29,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;