summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2009-05-11 15:18:25 +1000
committerNeilBrown <neilb@suse.de>2009-05-11 15:18:25 +1000
commitaa7c284c06ba046039f60ceb4e3fb422967d354f (patch)
treef376b9893040f75ec50f6f9346de6529880bf97b /config.c
parent061f2c6abd014c9f30ca2d784cb535e3e3452c65 (diff)
Fix tests on ->container and ->member
For container= and member= to be effective in an mdadm.conf line they must both be present. So when checking for their absence we need container != NULL || member != NULL. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'config.c')
-rw-r--r--config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.c b/config.c
index 0d5b3f9a..fd757ad0 100644
--- a/config.c
+++ b/config.c
@@ -567,7 +567,7 @@ void arrayline(char *line)
}
if (mis.uuid_set == 0 && mis.devices == NULL &&
mis.super_minor == UnSet && mis.name[0] == 0 &&
- (mis.container == NULL && mis.member == NULL))
+ (mis.container == NULL || mis.member == NULL))
fprintf(stderr, Name ": ARRAY line %s has no identity information.\n", mis.devname);
else {
mi = malloc(sizeof(*mi));