From: Andre Noll Date: Tue, 9 Nov 2010 17:43:49 +0000 (+0100) Subject: Change default program for all hooks from /bin/true to true. X-Git-Tag: v0.1.5~25 X-Git-Url: http://git.tuebingen.mpg.de/?a=commitdiff_plain;h=117c2aab1ca6d5918a39e65dd9581545c3dc95b9;p=dss.git 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. --- 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