Merge commit 'refs/top-bases/linux-have-zpl' into linux-have-zpl

This commit is contained in:
Brian Behlendorf 2009-07-09 15:12:29 -07:00
commit 0c390c6de4
1 changed files with 6 additions and 6 deletions

View File

@ -1622,8 +1622,8 @@ zfs_set_prop_nvlist(const char *name, nvlist_t *nvl)
*/
if (zfs_prop_user(propname) &&
nvpair_type(elem) == DATA_TYPE_STRING) {
if (error = zfs_secpolicy_write_perms(name,
ZFS_DELEG_PERM_USERPROP, CRED()))
if ((error = zfs_secpolicy_write_perms(name,
ZFS_DELEG_PERM_USERPROP, CRED())))
return (error);
continue;
}
@ -1637,8 +1637,8 @@ zfs_set_prop_nvlist(const char *name, nvlist_t *nvl)
perm = ZFS_DELEG_PERM_USERQUOTA;
else
perm = ZFS_DELEG_PERM_GROUPQUOTA;
if (error = zfs_secpolicy_write_perms(name,
perm, CRED()))
if ((error = zfs_secpolicy_write_perms(name,
perm, CRED())))
return (error);
continue;
}
@ -1888,8 +1888,8 @@ zfs_check_userprops(char *fsname, nvlist_t *nvl)
nvpair_type(elem) != DATA_TYPE_STRING)
return (EINVAL);
if (error = zfs_secpolicy_write_perms(fsname,
ZFS_DELEG_PERM_USERPROP, CRED()))
if ((error = zfs_secpolicy_write_perms(fsname,
ZFS_DELEG_PERM_USERPROP, CRED())))
return (error);
if (strlen(propname) >= ZAP_MAXNAMELEN)