diff options
-rw-r--r-- | Assemble.c | 3 | ||||
-rw-r--r-- | Incremental.c | 5 |
2 files changed, 5 insertions, 3 deletions
@@ -478,7 +478,8 @@ int Assemble(struct supertype *st, char *mddev, st->ss->getinfo_super(st, content); trustworthy = FOREIGN; - switch (st->ss->match_home(st, homehost)) { + switch (st->ss->match_home(st, homehost) + ?: st->ss->match_home(st, "any")) { case 0: trustworthy = FOREIGN; name = content->name; diff --git a/Incremental.c b/Incremental.c index f7e602e..c13ea43 100644 --- a/Incremental.c +++ b/Incremental.c @@ -217,8 +217,9 @@ int Incremental(char *devname, int verbose, int runstop, * on that. */ if (match) trustworthy = LOCAL; - else if (homehost == NULL || - st->ss->match_home(st, homehost) != 1) + else if ((homehost == NULL || + st->ss->match_home(st, homehost) != 1) && + st->ss->match_home(st, "any") != 1) trustworthy = FOREIGN; else trustworthy = LOCAL; |