Can you try the following patch instead? You still won't be able to use " in the message, but I can't imagine that anyone would ever want to do that.
--- /usr/share/molly-guard/shutdown 2012-02-24 01:06:29.000000000 +0100 +++ /tmp/shutdown 2013-11-10 17:14:38.548704953 +0100 @@ -69,11 +69,15 @@ exit 0 ;; --) END_OF_ARGS=1;; - *) + *\"*) + echo 'E: cannot use double-quotes (") in arguments' >&2 + exit 1 + ;; + *) if [ $END_OF_ARGS -eq 0 ]; then - CMDARGS="${CMDARGS:+$CMDARGS }$arg" + CMDARGS="${CMDARGS:+$CMDARGS }\"$arg\"" else - SCRIPTARGS="${SCRIPTARGS:+$SCRIPTARGS }--arg $arg" + SCRIPTARGS="${SCRIPTARGS:+$SCRIPTARGS }--arg \"$arg\"" fi ;; esac -- .''`. martin f. krafft <madduck@d.o> Related projects: : :' : proud Debian developer http://debiansystem.info `. `'` http://people.debian.org/~madduck http://vcs-pkg.org `- Debian - when you have better things to do than fixing systems government announcement - the government announced today that it is changing its mascot to a condom because it more clearly reflects the government's political stance. a condom stands up to inflation, halts production, destroys the next generation, protects a bunch of pricks and finally, gives you a sense of security while you're being screwed!
digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)