diff options
author | Alasdair Kergon <agk@redhat.com> | 2007-01-31 16:26:23 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2007-01-31 16:26:23 +0000 |
commit | aa350ef4265cbcf92a6562d9f90e6a460c7c3329 (patch) | |
tree | fe7a477fab2daeb24c133942514fcd2d1ff79cfc /tools/vgreduce.c | |
parent | 612209c8d9cc08c39a5d66b5bd2f3934c60c726f (diff) | |
download | lvm2-aa350ef4265cbcf92a6562d9f90e6a460c7c3329.tar.gz lvm2-aa350ef4265cbcf92a6562d9f90e6a460c7c3329.tar.xz lvm2-aa350ef4265cbcf92a6562d9f90e6a460c7c3329.zip |
Fix some &->&& vgreduce cmdline validation. [Andre Noll]
Diffstat (limited to 'tools/vgreduce.c')
-rw-r--r-- | tools/vgreduce.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/vgreduce.c b/tools/vgreduce.c index 1d3b977d..d2a1af63 100644 --- a/tools/vgreduce.c +++ b/tools/vgreduce.c @@ -427,13 +427,13 @@ int vgreduce(struct cmd_context *cmd, int argc, char **argv) int ret = 1; int consistent = 1; - if (!argc & !arg_count(cmd, removemissing_ARG)) { + if (!argc && !arg_count(cmd, removemissing_ARG)) { log_error("Please give volume group name and " "physical volume paths"); return EINVALID_CMD_LINE; } - if (!argc & arg_count(cmd, removemissing_ARG)) { + if (!argc && arg_count(cmd, removemissing_ARG)) { log_error("Please give volume group name"); return EINVALID_CMD_LINE; } |