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 <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #13330
This commit is contained in:
наб
2022-04-15 00:00:02 +02:00
committed by Brian Behlendorf
parent 38f4d99f76
commit 2b4f2fc93c
7 changed files with 1427 additions and 1442 deletions
+1 -5
View File
@@ -8577,11 +8577,7 @@ static int
zfs_do_version(int argc, char **argv)
{
(void) argc, (void) argv;
if (zfs_version_print() == -1)
return (1);
return (0);
return (zfs_version_print() != 0);
}
int