From 502f56e5819510afc09de961814254d2ccc8f8c7 Mon Sep 17 00:00:00 2001
From: Andre Noll <maan@systemlinux.org>
Date: Mon, 5 Apr 2010 20:35:47 +0200
Subject: [PATCH] pre_remove_hook: Really pass full path of the snapshot.

We computed and logged the correct command, but executed the
wrong one.
---
 dss.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/dss.c b/dss.c
index 68efc2b..53707bd 100644
--- a/dss.c
+++ b/dss.c
@@ -250,8 +250,7 @@ static int pre_remove_hook(struct snapshot *s, const char *why)
 	cmd = make_message("%s %s/%s", conf.pre_remove_hook_arg,
 		conf.dest_dir_arg, s->name);
 	DSS_DEBUG_LOG("executing %s\n", cmd);
-	ret = dss_exec_cmdline_pid(&remove_pid,
-		conf.pre_remove_hook_arg, fds);
+	ret = dss_exec_cmdline_pid(&remove_pid, cmd, fds);
 	free(cmd);
 	if (ret < 0)
 		return ret;
-- 
2.39.5