X-Git-Url: http://git.cascardo.info/?a=blobdiff_plain;f=fs%2Fnamei.c;h=adb04146df09281ff5825382c0f73564024061b9;hb=d2ffb0103aaefa9b169da042cf39ce27bfb6cdbb;hp=c386a329ab203d44bc9a1ee5c49d5681a32fd81d;hpb=43a0a98aa8da71583f84b84fd72e265c24d4c5f8;p=cascardo%2Flinux.git diff --git a/fs/namei.c b/fs/namei.c index c386a329ab20..adb04146df09 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -410,7 +410,7 @@ int __inode_permission(struct inode *inode, int mask) * Nobody gets write access to an immutable file. */ if (IS_IMMUTABLE(inode)) - return -EACCES; + return -EPERM; /* * Updating mtime will likely cause i_uid and i_gid to be