summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--c/src/exec/libcsupport/src/chdir.c3
-rw-r--r--c/src/lib/ChangeLog7
-rw-r--r--c/src/lib/libc/chdir.c3
-rw-r--r--cpukit/libcsupport/src/chdir.c3
4 files changed, 13 insertions, 3 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;
diff --git a/c/src/lib/ChangeLog b/c/src/lib/ChangeLog
index a7418f9bbe..5d1f476c1f 100644
--- a/c/src/lib/ChangeLog
+++ b/c/src/lib/ChangeLog
@@ -1,3 +1,10 @@
+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().
+
2001-10-26 Joel Sherrill <joel@OARcorp.com>
* libc/libio.c: Cleanup of initialization per suggestion from
diff --git a/c/src/lib/libc/chdir.c b/c/src/lib/libc/chdir.c
index ca20919e93..a8322e91d0 100644
--- a/c/src/lib/libc/chdir.c
+++ b/c/src/lib/libc/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;
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;