On Fri, Sep 22, 2023 at 09:02:55AM +0200, Francesco wrote:
> Package: msktutil
> Version: 1.2-2
>
>
> bug fix for issue #1009904 doesn't look good for me:
>
> "/etc/cron.daily/msktutil:
> Error: unknown parameter: -N -h ldap-pp-01.example.org --service host
> --computer-name ldap-pp-01
>
> For help, try running msktutil --help
>
> run-parts: /etc/cron.daily/msktutil exited with return code 1"
>
> On my Debian GNU/Linux 12 (bookworm) the following script update works:
>
> $ cat /etc/cron.daily/msktutil
> #!/bin/sh
>
> test -x /usr/sbin/msktutil || exit 0
>
> # These options are overridden in /etc/default/msktutil.
> # Edit there, not here.
> AUTOUPDATE_ENABLED="false"
> AUTOUPDATE_OPTIONS=""
>
> [ -r /etc/default/msktutil ] && . /etc/default/msktutil
>
> [ "$AUTOUPDATE_ENABLED" = "true" ] || exit 0
> cmd="/usr/sbin/msktutil --auto-update ${AUTOUPDATE_OPTIONS}"
>
> exec $cmd
Hello François,
Thank you for the bug report. It is timely, because I am in the process
of preparing an upload of 1.2.1. I will get this fixed against 1.2 so
it is a candidate for stable-proposed-updates.
The expansion of $cmd in your version has the same impact as the eval
suggested in the bug report. My mistake, and thank you for the
correction.
Cheers,
tony