use printf %s

This commit is contained in:
Roy Marples 2007-04-19 12:05:25 +00:00
parent c2407df288
commit d3b28724b5

View File

@ -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