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:
parent
612209c8d9
commit
aa350ef426
@ -1,5 +1,6 @@
|
||||
Version 2.02.22 -
|
||||
===================================
|
||||
Fix some vgreduce --removemissing command line validation.
|
||||
|
||||
Version 2.02.21 - 30th January 2007
|
||||
===================================
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user