]> git.tue.mpg.de Git - dss.git/commitdiff
fix post_create_hook: really pass full path to last complete snapshot
authorSebastian Stark <seb@biskalar.de>
Sat, 31 Jan 2009 09:04:28 +0000 (10:04 +0100)
committerSebastian Stark <seb@biskalar.de>
Sat, 31 Jan 2009 09:04:28 +0000 (10:04 +0100)
dss.c

diff --git a/dss.c b/dss.c
index f8a1e5132dfd3954bd2242b2f38d6deb384ffa9e..aec4109abab7dff1b970189a48a83caa253c2333 100644 (file)
--- 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);