Fix the default skip-compress list.
[rsync.git] / main.c
diff --git a/main.c b/main.c
index 1328c504098760a9b959a6e2395ee6cc16be0de6..9af9e5d3efd4d5f6cfb65bd4f2430dd83c5c23cf 100644 (file)
--- a/main.c
+++ b/main.c
@@ -1681,6 +1681,10 @@ int main(int argc,char *argv[])
 
        memset(&stats, 0, sizeof(stats));
 
+       /* Even a non-daemon runs needs the default config values to be set, e.g.
+        * lp_dont_compress() is queried when no --skip-compress option is set. */
+       reset_daemon_vars();
+
        if (argc < 2) {
                usage(FERROR);
                exit_cleanup(RERR_SYNTAX);