summaryrefslogtreecommitdiffstats
path: root/tools/vgreduce.c
diff options
context:
space:
mode:
authorAlasdair Kergon <agk@redhat.com>2007-01-31 16:26:23 +0000
committerAlasdair Kergon <agk@redhat.com>2007-01-31 16:26:23 +0000
commitaa350ef4265cbcf92a6562d9f90e6a460c7c3329 (patch)
treefe7a477fab2daeb24c133942514fcd2d1ff79cfc /tools/vgreduce.c
parent612209c8d9cc08c39a5d66b5bd2f3934c60c726f (diff)
downloadlvm2-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.c4
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;
}