summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan McDonald <danmcd@joyent.com>2021-07-09 10:03:56 -0400
committerDan McDonald <danmcd@joyent.com>2021-07-09 10:03:56 -0400
commit1c32b49d7fb5206ef37ab8485bc1eca433781374 (patch)
tree47aa7f41abda0a09b08bdea94f895bae836d5090
parentd18a74b88693eb1597200dd2e5abe0727bc11ad9 (diff)
parentcfcb628093a526b143a37c1a2f112f2c7591ed70 (diff)
downloadillumos-joyent-1c32b49d7fb5206ef37ab8485bc1eca433781374.tar.gz
[illumos-gate merge]
commit cfcb628093a526b143a37c1a2f112f2c7591ed70 13906 zfs holds wrongly says there are no datasets available
-rw-r--r--usr/src/cmd/zfs/zfs_main.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/usr/src/cmd/zfs/zfs_main.c b/usr/src/cmd/zfs/zfs_main.c
index 69a9af8ea7..89ad29c4c0 100644
--- a/usr/src/cmd/zfs/zfs_main.c
+++ b/usr/src/cmd/zfs/zfs_main.c
@@ -6154,9 +6154,6 @@ zfs_do_holds(int argc, char **argv)
*/
print_holds(scripted, cb.cb_max_namelen, cb.cb_max_taglen, nvl);
- if (nvlist_empty(nvl))
- (void) printf(gettext("no datasets available\n"));
-
nvlist_free(nvl);
return (0 != errors);