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