mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
Fix 'zfs allow' for create time permissions
When no permission set is defined for a dataset the create time permissions are incorrectly shown as if they were a permission set. This change simply correct how allow permissions are displayed. This commit also fixes a small manpage formatting issue and adds the "zfs_allow_003_pos" test case to the ZFS Test Suite. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: George Melikov <mail@gmelikov.ru> Signed-off-by: loli10K <ezomori.nozomu@gmail.com> Closes #7519 Closes #7860
This commit is contained in:
+1
-2
@@ -5476,7 +5476,6 @@ print_set_creat_perms(uu_avl_t *who_avl)
|
||||
gettext("Create time permissions:\n"),
|
||||
NULL
|
||||
};
|
||||
const char **title_ptr = sc_title;
|
||||
who_perm_node_t *who_node = NULL;
|
||||
int prev_weight = -1;
|
||||
|
||||
@@ -5490,7 +5489,7 @@ print_set_creat_perms(uu_avl_t *who_avl)
|
||||
deleg_perm_node_t *deleg_node;
|
||||
|
||||
if (prev_weight != weight) {
|
||||
(void) printf("%s", *title_ptr++);
|
||||
(void) printf("%s", sc_title[weight]);
|
||||
prev_weight = weight;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user