]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/hfs/inode.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm...
[karo-tx-linux.git] / fs / hfs / inode.c
index 553909395270ebe44ed05856af0a67e1a508d8e2..0b35903219bc1056d4c1c3260ec75d7b68a1b269 100644 (file)
@@ -594,9 +594,9 @@ int hfs_inode_setattr(struct dentry *dentry, struct iattr * attr)
 
        /* no uig/gid changes and limit which mode bits can be set */
        if (((attr->ia_valid & ATTR_UID) &&
-            (attr->ia_uid != hsb->s_uid)) ||
+            (!uid_eq(attr->ia_uid, hsb->s_uid))) ||
            ((attr->ia_valid & ATTR_GID) &&
-            (attr->ia_gid != hsb->s_gid)) ||
+            (!gid_eq(attr->ia_gid, hsb->s_gid))) ||
            ((attr->ia_valid & ATTR_MODE) &&
             ((S_ISDIR(inode->i_mode) &&
               (attr->ia_mode != inode->i_mode)) ||