Bug#548662: /etc/init.d/ssh: check_config() should look at $SSHD_OPTS
tags 548662 pending
thanks
On Mon, Sep 28, 2009 at 02:39:54AM +0000, sobtwmxt wrote:
> /etc/init.d/ssh contain check_config(). Currently, that procedure
> doesn't take into account an admin who uses -f switch to set a non
> default config file. In addition, depending whether -t is aleady
> smart to check command line arguments, it doesn't take into account
> command line arguments either.
>
> The following patch is suggested:
>
> --- /etc/init.d/ssh 2009-07-31 18:56:22.000000000 +0100
> +++ /etc/init.d/ssh 2009-09-28 04:26:14.000000000 +0100
> @@ -75,7 +75,7 @@
>
> check_config() {
> if [ ! -e /etc/ssh/sshd_not_to_be_run ]; then
> - /usr/sbin/sshd -t || exit 1
> + /usr/sbin/sshd $SSHD_OPTS -t || exit 1
> fi
> }
>
Looks sensible, thanks; I'll apply that for my next upload.
--
Colin Watson [cjwatson@debian.org]
Reply to: