From 04cd47db5920f3d3a23c523dafd07ceae5e51c2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 10 Nov 2005 11:17:03 +0000 Subject: [PATCH] common_access() now follows the same logic as traversing paths: if the file system doesn't export the fs_access() function, it assumes access is granted. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14816 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/fs/vfs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/kernel/fs/vfs.cpp b/src/system/kernel/fs/vfs.cpp index 04f3cdd193..e9a2cd91a4 100644 --- a/src/system/kernel/fs/vfs.cpp +++ b/src/system/kernel/fs/vfs.cpp @@ -4010,7 +4010,7 @@ common_access(char *path, int mode, bool kernel) if (FS_CALL(vnode, access) != NULL) status = FS_CALL(vnode, access)(vnode->mount->cookie, vnode->private_node, mode); else - status = EOPNOTSUPP; + status = B_OK; put_vnode(vnode);