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:
parent
25f29f4712
commit
d5250f4901
@ -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