X-Git-Url: http://git.cascardo.info/?a=blobdiff_plain;f=fs%2Fnamei.c;h=adb04146df09281ff5825382c0f73564024061b9;hb=baf009f92731c0fc1f036d8b7dba3bf5bb2c2a5e;hp=c386a329ab203d44bc9a1ee5c49d5681a32fd81d;hpb=fdf1f7ff1bd7f1c6d1d5dc2b29b6b11a4f722276;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