On Sat, Sep 4, 2010 at 15:42, Julien Cristau <[email protected]> wrote: > tools/ods-control.in looks like it should exit with an error if it > doesn't like its command line arguments.
I have prepared patch for this issue and I will upload it as 1.1.2-2 if you say it's ok. Ondrej -- Ondřej Surý <[email protected]>
--- a/tools/ods-control.in +++ b/tools/ods-control.in @@ -38,16 +38,19 @@ case "$1" in 'ksm') shift "$bindir/ods-ksmutil" $@ + exit $? ;; 'hsm') shift "$bindir/ods-hsmutil" $@ + exit $? ;; 'signer') shift "$sbindir/ods-signer" $@ + exit $? ;; 'enforcer') @@ -98,7 +101,8 @@ case "$1" in ;; *) - echo "usage: $progname enforcer start|stop|notify" + echo "usage: $progname enforcer start|stop|notify" >&2 + exit 3 ;; esac @@ -116,10 +120,12 @@ case "$1" in echo "Stopping signer engine.." "$sbindir/ods-signer" stop + exit $? ;; *) - echo "usage: $progname ksm|hsm|signer|enforcer|start|stop ..." + echo "usage: $progname ksm|hsm|signer|enforcer|start|stop ..." >&2 + exit 3 ;; esac

