1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00

Fix some &->&& vgreduce cmdline validation. [Andre Noll]

This commit is contained in:
Alasdair Kergon 2007-01-31 16:26:23 +00:00
parent 25f29f4712
commit d5250f4901
2 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.22 -
===================================
Fix some vgreduce --removemissing command line validation.
Version 2.02.21 - 30th January 2007
===================================

View File

@ -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;
}