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-07 23:54:59 +00:00
parent ff79cc570e
commit bc2db66fcb
4 changed files with 13 additions and 3 deletions

View File

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