From: Andre Noll Date: Wed, 11 Feb 2009 22:51:44 +0000 (+0100) Subject: Merge commit 'fml/master' X-Git-Tag: v0.1.3~22^2 X-Git-Url: http://git.tuebingen.mpg.de/?p=dss.git;a=commitdiff_plain;h=9cae8db21f58ffa7dc5805dc564a7fe988c14c01;hp=1b6ecb6d4ea35cbc9ab77dddaaa8a68b7436d019 Merge commit 'fml/master' --- diff --git a/dss.c b/dss.c index c4349a8..d57daba 100644 --- a/dss.c +++ b/dss.c @@ -380,8 +380,8 @@ static int post_create_hook(void) compute_next_snapshot_time(); return 0; } - cmd = make_message("%s %s", conf.post_create_hook_arg, - path_to_last_complete_snapshot); + cmd = make_message("%s %s/%s", conf.post_create_hook_arg, + conf.dest_dir_arg, path_to_last_complete_snapshot); DSS_NOTICE_LOG("executing %s\n", cmd); ret = dss_exec_cmdline_pid(&post_create_hook_pid, cmd, fds); free(cmd); @@ -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, ¶ms); } ret = check_config();