aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/zpool/zpool_main.c
diff options
context:
space:
mode:
authorRob Norris <[email protected]>2024-10-08 07:09:08 +1100
committerGitHub <[email protected]>2024-10-07 13:09:08 -0700
commitca0141f325ec706d38a06f9aeb8e5eb6c6a8d09a (patch)
treef1a9d7c23881c086296a9c5f1dfcdf83939697ca /cmd/zpool/zpool_main.c
parentab777f436ce228559f3c2480ebe8a6b5ab888c43 (diff)
zpool/zfs: restore -V & --version options
The -j option added a round of getopt, which didn't know the magic version flags. So just bypass the whole thing and go straight to the human output function for the special case. Sponsored-by: https://despairlabs.com/sponsor/ Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Umer Saleem <[email protected]> Signed-off-by: Rob Norris <[email protected]> Closes #16615 Closes #16617
Diffstat (limited to 'cmd/zpool/zpool_main.c')
-rw-r--r--cmd/zpool/zpool_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/zpool/zpool_main.c b/cmd/zpool/zpool_main.c
index aa7da68aa..bc9f90cae 100644
--- a/cmd/zpool/zpool_main.c
+++ b/cmd/zpool/zpool_main.c
@@ -13613,7 +13613,7 @@ main(int argc, char **argv)
* Special case '-V|--version'
*/
if ((strcmp(cmdname, "-V") == 0) || (strcmp(cmdname, "--version") == 0))
- return (zpool_do_version(argc, argv));
+ return (zfs_version_print() != 0);
/*
* Special case 'help'