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:
parent
5123fbe5e3
commit
bbdc29a05d
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user