From aa350ef4265cbcf92a6562d9f90e6a460c7c3329 Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Wed, 31 Jan 2007 16:26:23 +0000 Subject: [PATCH] Fix some &->&& vgreduce cmdline validation. [Andre Noll] --- WHATS_NEW | 1 + tools/vgreduce.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/WHATS_NEW b/WHATS_NEW index 5c19d1df3..fa11b25a8 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.22 - =================================== + Fix some vgreduce --removemissing command line validation. Version 2.02.21 - 30th January 2007 =================================== diff --git a/tools/vgreduce.c b/tools/vgreduce.c index 1d3b977d3..d2a1af635 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; }