bfs_walk() should check for read permissions for iterating through directories, not execute permission.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1733 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Bruno G. Albuquerque 2002-10-28 13:31:54 +00:00
parent 5123fbe5e3
commit bbdc29a05d

View File

@ -483,7 +483,7 @@ bfs_walk(void *_ns, void *_directory, const char *file, char **_resolvedPath, vn
Inode *directory = (Inode *)_directory;
// check access permissions
status_t status = directory->CheckPermissions(X_OK);
status_t status = directory->CheckPermissions(R_OK);
if (status < B_OK)
RETURN_ERROR(status);