Add suggested paranthesis.
This commit is contained in:
parent
f80f59f955
commit
ae132945b4
|
@ -1606,8 +1606,8 @@ zfs_set_prop_nvlist(const char *name, nvlist_t *nvl)
|
||||||
*/
|
*/
|
||||||
if (zfs_prop_user(propname) &&
|
if (zfs_prop_user(propname) &&
|
||||||
nvpair_type(elem) == DATA_TYPE_STRING) {
|
nvpair_type(elem) == DATA_TYPE_STRING) {
|
||||||
if (error = zfs_secpolicy_write_perms(name,
|
if ((error = zfs_secpolicy_write_perms(name,
|
||||||
ZFS_DELEG_PERM_USERPROP, CRED()))
|
ZFS_DELEG_PERM_USERPROP, CRED())))
|
||||||
return (error);
|
return (error);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -1621,8 +1621,8 @@ zfs_set_prop_nvlist(const char *name, nvlist_t *nvl)
|
||||||
perm = ZFS_DELEG_PERM_USERQUOTA;
|
perm = ZFS_DELEG_PERM_USERQUOTA;
|
||||||
else
|
else
|
||||||
perm = ZFS_DELEG_PERM_GROUPQUOTA;
|
perm = ZFS_DELEG_PERM_GROUPQUOTA;
|
||||||
if (error = zfs_secpolicy_write_perms(name,
|
if ((error = zfs_secpolicy_write_perms(name,
|
||||||
perm, CRED()))
|
perm, CRED())))
|
||||||
return (error);
|
return (error);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -1860,8 +1860,8 @@ zfs_check_userprops(char *fsname, nvlist_t *nvl)
|
||||||
nvpair_type(elem) != DATA_TYPE_STRING)
|
nvpair_type(elem) != DATA_TYPE_STRING)
|
||||||
return (EINVAL);
|
return (EINVAL);
|
||||||
|
|
||||||
if (error = zfs_secpolicy_write_perms(fsname,
|
if ((error = zfs_secpolicy_write_perms(fsname,
|
||||||
ZFS_DELEG_PERM_USERPROP, CRED()))
|
ZFS_DELEG_PERM_USERPROP, CRED())))
|
||||||
return (error);
|
return (error);
|
||||||
|
|
||||||
if (strlen(propname) >= ZAP_MAXNAMELEN)
|
if (strlen(propname) >= ZAP_MAXNAMELEN)
|
||||||
|
|
Loading…
Reference in New Issue