From 117c2aab1ca6d5918a39e65dd9581545c3dc95b9 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Tue, 9 Nov 2010 18:43:49 +0100 Subject: [PATCH] Change default program for all hooks from /bin/true to true. At least on Mac OS, true is /usr/bin/true, not /bin/true. So the old default /bin/true causes all hooks to fail on these systems. Since we execute external programs via execvp() anyway, there is no need to hardcode the path. Thanks to Henry Vogt for pointing out this flaw. --- dss.ggo | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dss.ggo b/dss.ggo index 9f07d34..f290163 100644 --- a/dss.ggo +++ b/dss.ggo @@ -268,7 +268,7 @@ option "pre-create-hook" r #~~~~~~~~~~~~~~~~~~~~~~~~~~ "Executed before snapshot creation" string typestr="command" -default = "/bin/true" +default = "true" optional details=" Execute this command before trying to create a new snapshot. @@ -287,7 +287,7 @@ option "post-create-hook" o #~~~~~~~~~~~~~~~~~~~~~~~~~~ "Executed after snapshot creation" string typestr="command" -default = "/bin/true" +default = "true" optional details=" Execute this after a snapshot has successfully been @@ -304,7 +304,7 @@ option "pre-remove-hook" - #~~~~~~~~~~~~~~~~~~~~~~~~~~ "Executed before snapshot removal" string typestr="command" -default = "/bin/true" +default = "true" optional details=" Execute this command before removing a snapshot. The full @@ -326,7 +326,7 @@ option "post-remove-hook" - #~~~~~~~~~~~~~~~~~~~~~~~~~~ "Executed after snapshot removal" string typestr="command" -default = "/bin/true" +default = "true" optional details=" Execute this after a snapshot has successfully been removed. As @@ -339,7 +339,7 @@ option "exit-hook" e #~~~~~~~~~~~~~~~~~~~ "Executed if run command exits" string typestr="command" -default = "/bin/true" +default = "true" optional details=" This hook is only used if the --run command was given which -- 2.39.2