aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorLOLi <[email protected]>2018-09-06 22:11:21 +0200
committerBrian Behlendorf <[email protected]>2018-09-06 13:11:21 -0700
commit0238a9755b07d1a2705e970f5c09fb7fa261ea5d (patch)
tree529db628c180b9399784df53c8b9aaadd2a0bced /cmd
parentcc99f275a28c43fe450a66a7544f73c4935f7361 (diff)
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 <[email protected]> Reviewed-by: George Melikov <[email protected]> Signed-off-by: loli10K <[email protected]> Closes #7519 Closes #7860
Diffstat (limited to 'cmd')
-rw-r--r--cmd/zfs/zfs_main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd/zfs/zfs_main.c b/cmd/zfs/zfs_main.c
index 1a91b031a..dcfb6e80a 100644
--- a/cmd/zfs/zfs_main.c
+++ b/cmd/zfs/zfs_main.c
@@ -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;
}