forked from Imagelibrary/rtems
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:
@@ -33,7 +33,8 @@ int chdir(
|
|||||||
* Get the node where we wish to go.
|
* 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 )
|
if ( result != 0 )
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
|||||||
@@ -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>
|
2001-10-26 Joel Sherrill <joel@OARcorp.com>
|
||||||
|
|
||||||
* libc/libio.c: Cleanup of initialization per suggestion from
|
* libc/libio.c: Cleanup of initialization per suggestion from
|
||||||
|
|||||||
@@ -33,7 +33,8 @@ int chdir(
|
|||||||
* Get the node where we wish to go.
|
* 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 )
|
if ( result != 0 )
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
|||||||
@@ -33,7 +33,8 @@ int chdir(
|
|||||||
* Get the node where we wish to go.
|
* 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 )
|
if ( result != 0 )
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user