Restore the old include behavior where a command-line include could
[rsync/rsync.git] / util.c
diff --git a/util.c b/util.c
index be639e4..34df88e 100644 (file)
--- a/util.c
+++ b/util.c
@@ -476,7 +476,7 @@ static int exclude_server_path(char *arg)
        if (server_exclude_list.head) {
                for (s = arg; (s = strchr(s, '/')) != NULL; ) {
                        *s = '\0';
-                       if (check_exclude(&server_exclude_list, arg, 1)) {
+                       if (check_exclude(&server_exclude_list, arg, 1) < 0) {
                                /* We must leave arg truncated! */
                                return 1;
                        }