]> git.tuebingen.mpg.de Git - dss.git/commitdiff
Change default program for all hooks from /bin/true to true.
authorAndre Noll <maan@systemlinux.org>
Tue, 9 Nov 2010 17:43:49 +0000 (18:43 +0100)
committerAndre Noll <maan@systemlinux.org>
Tue, 9 Nov 2010 17:43:49 +0000 (18:43 +0100)
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

diff --git a/dss.ggo b/dss.ggo
index 9f07d34c86aee68c9b788c487308a2cc7a4def17..f2901638b5e362e8c9ad19e14cd20eaa42e1a382 100644 (file)
--- 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