mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 01:51:00 +03:00
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 <behlendorf1@llnl.gov> Reviewed-by: Umer Saleem <usaleem@ixsystems.com> Signed-off-by: Rob Norris <robn@despairlabs.com> Closes #16615 Closes #16617
This commit is contained in:
parent
ab777f436c
commit
ca0141f325
@ -9187,7 +9187,7 @@ main(int argc, char **argv)
|
||||
* Special case '-V|--version'
|
||||
*/
|
||||
if ((strcmp(cmdname, "-V") == 0) || (strcmp(cmdname, "--version") == 0))
|
||||
return (zfs_do_version(argc, argv));
|
||||
return (zfs_version_print() != 0);
|
||||
|
||||
/*
|
||||
* Special case 'help'
|
||||
|
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user