From a637c087f499bed287890b449ef88e6b8e755fb2 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 8 Nov 2001 00:00:01 +0000 Subject: [PATCH] 2001-11-07 Jennifer Averett Reported by Ibragimov Ilya 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(). --- c/src/lib/libc/chdir.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;