From d4a9bad14e6432d3d9b7572c0ad8aa711b2a8c5b Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Fri, 27 Dec 2019 18:27:12 +0000 Subject: [PATCH] jw-pkg compile-templates: Fix slashes in passwords Signed-off-by: Jan Lindemann --- scripts/jw-pkg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/jw-pkg b/scripts/jw-pkg index e7136438..b85fd0d7 100644 --- a/scripts/jw-pkg +++ b/scripts/jw-pkg @@ -303,7 +303,7 @@ cmd_compile_templates() local tmp=$to.tmp log "Applying macros in $table to $f." eval `sed "/$conf_patt/ !d; s/$conf_patt//" $table` - sed 's|^[ ]*#.*||; s|\([^ =]\+\)[ =]\+\(.*\)|s/\1/\2/g|' $table | sed -f - $f > $tmp + sed 's|^[ ]*#.*||; s|/|\\/|g; s|\([^ =]\+\)[ =]\+\(.*\)|s/\1/\2/g|' $table | sed -f - $f > $tmp chmod $mode $tmp chown $owner $tmp chgrp $group $tmp