summaryrefslogtreecommitdiffstats
path: root/Incremental.c
diff options
context:
space:
mode:
Diffstat (limited to 'Incremental.c')
-rw-r--r--Incremental.c5
1 files changed, 3 insertions, 2 deletions
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;