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().
This commit is contained in:
Joel Sherrill
2001-11-08 00:00:01 +00:00
parent 3fe8f44b92
commit a637c087f4

View File

@@ -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;