summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2016-01-06 16:32:32 -0500
committerBrian Behlendorf <[email protected]>2016-01-08 12:43:29 -0800
commit00af2ff6f219b4f73aebaaf9496cf5ea4b6728a3 (patch)
tree651ebc5c12547d81e43a70627dfb2f435e08f9aa
parentc5d0287011679d76288c2617c409252245172a32 (diff)
Add missing -V option to zdb
Add missing getopt specifier for `zdb -V` verbatim option and set flag with correct bitwise operator. Signed-off-by: Brian Behlendorf <[email protected]>
-rw-r--r--cmd/zdb/zdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/zdb/zdb.c b/cmd/zdb/zdb.c
index 60095f825..8f0421487 100644
--- a/cmd/zdb/zdb.c
+++ b/cmd/zdb/zdb.c
@@ -3623,7 +3623,7 @@ main(int argc, char **argv)
int flags = ZFS_IMPORT_MISSING_LOG;
int rewind = ZPOOL_NEVER_REWIND;
char *spa_config_path_env;
- const char *opts = "bcdhilmMI:suCDRSAFLXevp:t:U:P";
+ const char *opts = "bcdhilmMI:suCDRSAFLXevp:t:U:PV";
boolean_t target_is_spa = B_TRUE;
(void) setrlimit(RLIMIT_NOFILE, &rl);
@@ -3668,7 +3668,7 @@ main(int argc, char **argv)
dump_opt[c]++;
break;
case 'V':
- flags = ZFS_IMPORT_VERBATIM;
+ flags |= ZFS_IMPORT_VERBATIM;
break;
case 'I':
max_inflight = strtoull(optarg, NULL, 0);