1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +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 612209c8d9
commit aa350ef426
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;
}