X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Fjfs%2Fxattr.c;h=9b7f2cdaae0a6655538066e104bff5e10bbcab70;hb=HEAD;hp=b2375f0774b72c89cb602358735a0fed289206f7;hpb=702ed6ef375c19d65f2eeeefd3851476f2c4cee4;p=linux-2.6 diff --git a/fs/jfs/xattr.c b/fs/jfs/xattr.c index b2375f0774..9b7f2cdaae 100644 --- a/fs/jfs/xattr.c +++ b/fs/jfs/xattr.c @@ -697,7 +697,7 @@ static int can_set_system_xattr(struct inode *inode, const char *name, struct posix_acl *acl; int rc; - if ((current->fsuid != inode->i_uid) && !capable(CAP_FOWNER)) + if (!is_owner_or_cap(inode)) return -EPERM; /*