[sheepdog] [PATCH] deb: escape forward slashes in DAEMON_ARGS
Alexander Guy
alexander at andern.org
Mon Feb 2 23:12:41 CET 2015
This allows arguments that take things like paths
(e.g. -l dir=/somewhere) to be handled properly.
Signed-off-by: Alexander Guy <alexander at andern.org>
---
debian/sheepdog.postinst | 1 +
1 file changed, 1 insertion(+)
diff --git a/debian/sheepdog.postinst b/debian/sheepdog.postinst
index bc72f06..760ee67 100644
--- a/debian/sheepdog.postinst
+++ b/debian/sheepdog.postinst
@@ -19,6 +19,7 @@ if [ "$1" = "configure" ] ; then
sed -i -e "s/^[ \t]*START=.*/START=\"$SERVICE_START\"/g" /etc/default/sheepdog
db_get sheepdog/daemon_args
+ RET="$(echo $RET | sed -e 's:/:\\/:g')"
sed -i -e "s/^[ \t]*DAEMON_ARGS=.*/DAEMON_ARGS=\"$RET\"/g" /etc/default/sheepdog
fi
db_stop || true
--
2.1.4
More information about the sheepdog
mailing list