From 49c31016cdf29502541eb8f4f39d557a91f65901 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Sat, 25 Oct 2014 15:53:57 +0200 Subject: [PATCH] bfs: root may always enter directories. * If you're root, you can now always enter directories, even if they don't have the X permission. --- src/add-ons/kernel/file_systems/bfs/Inode.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/add-ons/kernel/file_systems/bfs/Inode.cpp b/src/add-ons/kernel/file_systems/bfs/Inode.cpp index bbdd06b118..4bab2972c3 100644 --- a/src/add-ons/kernel/file_systems/bfs/Inode.cpp +++ b/src/add-ons/kernel/file_systems/bfs/Inode.cpp @@ -523,6 +523,8 @@ Inode::CheckPermissions(int accessMode) const // X bits must be set for execute permission permissions = userPermissions | groupPermissions | otherPermissions | R_OK | W_OK; + if (IsDirectory()) + permissions |= X_OK; } else if (uid == (uid_t)fNode.UserID()) { // user is node owner permissions = userPermissions;