From d3b28724b551e5eae7b050d6b5e1bec9d64941d8 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Thu, 19 Apr 2007 12:05:25 +0000 Subject: use printf %s --- net.Linux/pppd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net.Linux/pppd.sh b/net.Linux/pppd.sh index 2d1ded17..625e0493 100644 --- a/net.Linux/pppd.sh +++ b/net.Linux/pppd.sh @@ -172,7 +172,7 @@ pppd_pre_start() { mark_service_inactive "${SVCNAME}" if [ -n "${username}" ] \ && [ -n "${password}" -o -z "${passwordset}" ] ; then - printf "${password}" | sed -e 's/\\/\\\\/g' -e 's/"/\\"/g' | \ + printf "%s" "${password}" | sed -e 's/\\/\\\\/g' -e 's/"/\\"/g' | \ eval start-stop-daemon --start --exec /usr/sbin/pppd \ --pidfile "/var/run/ppp-${IFACE}.pid" -- "${opts}" >/dev/null else -- cgit v1.2.3