X-Git-Url: http://git.cascardo.info/?a=blobdiff_plain;f=fs%2Futimes.c;h=794f5f5b1fb5cfd636725bfd65a7d21df916c36e;hb=09cb5b78af52208afb9f1b194c8a9154df4a4782;hp=85c40f4f373d56b3d5d41ed2fe7459759c8a3aeb;hpb=692b8c663cbaf892d10106fbca543b4bbc3202ad;p=cascardo%2Flinux.git diff --git a/fs/utimes.c b/fs/utimes.c index 85c40f4f373d..794f5f5b1fb5 100644 --- a/fs/utimes.c +++ b/fs/utimes.c @@ -92,10 +92,11 @@ static int utimes_common(struct path *path, struct timespec *times) * then we need to check permissions, because * inode_change_ok() won't do it. */ - error = -EACCES; + error = -EPERM; if (IS_IMMUTABLE(inode)) goto mnt_drop_write_and_out; + error = -EACCES; if (!inode_owner_or_capable(inode)) { error = inode_permission(inode, MAY_WRITE); if (error)