diff options
author | наб <[email protected]> | 2022-04-15 00:00:02 +0200 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2022-05-18 12:52:10 -0700 |
commit | 2b4f2fc93c4298415c5bc70554514c3e8892e5d5 (patch) | |
tree | 6dacd72befb51adf0f0fc500b42ad0fe9edebf83 /cmd/zpool | |
parent | 38f4d99f769efbb472ab3c35558700163e4f023c (diff) |
libzfs: return (allocated) strings instead of filling buffers
This also expands the zfs version output from 127 characters to However
Many Are Actually Set
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Ahelenia Ziemiańska <[email protected]>
Closes #13330
Diffstat (limited to 'cmd/zpool')
-rw-r--r-- | cmd/zpool/zpool_main.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/cmd/zpool/zpool_main.c b/cmd/zpool/zpool_main.c index ac4a0b23a..598d8b1bb 100644 --- a/cmd/zpool/zpool_main.c +++ b/cmd/zpool/zpool_main.c @@ -10818,11 +10818,7 @@ static int zpool_do_version(int argc, char **argv) { (void) argc, (void) argv; - - if (zfs_version_print() == -1) - return (1); - - return (0); + return (zfs_version_print() != 0); } /* |