$OpenBSD: patch-scripts_kamctl,v 1.2 2009/09/12 09:42:04 sthen Exp $ --- scripts/kamctl.orig Tue Jul 14 15:48:56 2009 +++ scripts/kamctl Sat Sep 12 09:04:33 2009 @@ -56,7 +56,7 @@ fi if [ -f "$MYLIBDIR/kamctl.base" ]; then . "$MYLIBDIR/kamctl.base" else - echo -e "Cannot load core functions '$MYLIBDIR/kamctl.base' - exiting ...\n" + printf "Cannot load core functions '$MYLIBDIR/kamctl.base' - exiting ...\n" exit -1 fi @@ -1795,7 +1795,7 @@ openser_stop() { options_ping() { myhost=`get_my_host` require_ctlengine - CMD="t_uac_dlg OPTIONS \"$1\" \".\" \".\" \"From:daemon@$myhost"$'\r\n'"To:<$1>"$'\r\n'"Contact:daemon@$myhost"$'\r\n'"\"" + CMD="t_uac_dlg OPTIONS \"$1\" \".\" \".\" \"From:daemon@$myhost"$(printf '\r\n')"To:<$1>"$(printf '\r\n')"Contact:daemon@$myhost"$(printf '\r\n')"\"" RET=`$CTLCMD $CMD | head -1` print_status $RET }