[sheepdog] [PATCH] deb: escape forward slashes in DAEMON_ARGS
Hitoshi Mitake
mitake.hitoshi at lab.ntt.co.jp
Tue Feb 3 02:46:00 CET 2015
At Mon, 2 Feb 2015 14:12:41 -0800,
Alexander Guy wrote:
>
> 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(+)
Applied, thanks.
Hitoshi
>
> 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
>
> --
> sheepdog mailing list
> sheepdog at lists.wpkg.org
> https://lists.wpkg.org/mailman/listinfo/sheepdog
More information about the sheepdog
mailing list