* boolian logic bug in vgremove
@ 2007-01-31 15:30 Andre Noll
2007-01-31 16:22 ` Alasdair G Kergon
0 siblings, 1 reply; 2+ messages in thread
From: Andre Noll @ 2007-01-31 15:30 UTC (permalink / raw)
To: Alasdair G Kergon; +Cc: dm-devel
[-- Attachment #1.1: Type: text/plain, Size: 1029 bytes --]
Hi
In the argument checking code of vgreduce.c there are two occasions of
'&' that really should be '&&'. Patch below.
Signed-off.by: Andre Noll <maan@systemlinux.org>
---
Index: vgreduce.c
===================================================================
RCS file: /cvs/lvm2/LVM2/tools/vgreduce.c,v
retrieving revision 1.55
diff -u -r1.55 vgreduce.c
--- vgreduce.c 9 Jan 2007 23:14:34 -0000 1.55
+++ vgreduce.c 31 Jan 2007 15:17:01 -0000
@@ -427,13 +427,13 @@
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;
}
Andre
--
The only person who always got his work done by Friday was Robinson Crusoe
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: boolian logic bug in vgremove
2007-01-31 15:30 boolian logic bug in vgremove Andre Noll
@ 2007-01-31 16:22 ` Alasdair G Kergon
0 siblings, 0 replies; 2+ messages in thread
From: Alasdair G Kergon @ 2007-01-31 16:22 UTC (permalink / raw)
To: Andre Noll; +Cc: dm-devel
On Wed, Jan 31, 2007 at 04:30:06PM +0100, Andre Noll wrote:
> In the argument checking code of vgreduce.c there are two occasions of
> '&' that really should be '&&'. Patch below.
Well-spotted - apparently it's been like that for 4 years!
Alasdair
--
agk@redhat.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-01-31 16:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-31 15:30 boolian logic bug in vgremove Andre Noll
2007-01-31 16:22 ` Alasdair G Kergon
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.