X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=fs%2Futimes.c;h=682eb63b20ad3c4c7452870c3d9e6e832aea21e0;hb=721e2629fa2167c0e5a9f10d704b1fee1621a8cb;hp=b3c88952465fa28cce7e0bb213fceaf59873fdf9;hpb=1e5de2837c166535f9bb4232bfe97ea1f9fc7a1c;p=powerpc.git diff --git a/fs/utimes.c b/fs/utimes.c index b3c8895246..682eb63b20 100644 --- a/fs/utimes.c +++ b/fs/utimes.c @@ -106,7 +106,7 @@ long do_utimes(int dfd, char __user *filename, struct timespec *times, int flags if (IS_IMMUTABLE(inode)) goto dput_and_out; - if (current->fsuid != inode->i_uid) { + if (!is_owner_or_cap(inode)) { if (f) { if (!(f->f_mode & FMODE_WRITE)) goto dput_and_out;