]> git.tuebingen.mpg.de Git - dss.git/blobdiff - dss.c
Invalidate all rsync options on SIGHUP.
[dss.git] / dss.c
diff --git a/dss.c b/dss.c
index c4349a84aa9dae70f4735bd25015568d37a72379..ecf2b3f657c191347d417b52e95cc4fb0bf42fda 100644 (file)
--- a/dss.c
+++ b/dss.c
@@ -620,6 +620,15 @@ static int parse_config_file(int override)
                        .check_ambiguity = 0,
                        .print_errors = 1
                };
+               if (override) { /* invalidate all rsync options */
+                       int i;
+
+                       for (i = 0; i < conf.rsync_option_given; i++) {
+                               free(conf.rsync_option_arg[i]);
+                               conf.rsync_option_arg[i] = NULL;
+                       }
+                       conf.rsync_option_given = 0;
+               }
                cmdline_parser_config_file(config_file, &conf, &params);
        }
        ret = check_config();