diff options
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/zfs/zfs_main.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd/zfs/zfs_main.c b/cmd/zfs/zfs_main.c index 2bf2b6cf9..a6e75e0ba 100644 --- a/cmd/zfs/zfs_main.c +++ b/cmd/zfs/zfs_main.c @@ -4403,6 +4403,12 @@ zfs_do_send(int argc, char **argv) "do a redacted send to a filesystem.\n")); return (1); } + if (strchr(redactbook, '#') != NULL) { + (void) fprintf(stderr, gettext("Error: " + "redaction bookmark argument must " + "not contain '#'\n")); + return (1); + } } zhp = zfs_open(g_zfs, argv[0], ZFS_TYPE_DATASET); |