Bug#244829: ssh.postinst may corrupt sshd_config that does not end with newline
tags 244829 pending
thanks
On Tue, Apr 20, 2004 at 09:20:02AM +0200, Davy Gigan wrote:
> Package: ssh
> Version: 1:3.8p1-3
> Severity: normal
>
> Hello,
>
> At line 71 of ssh.postinst, the following command may be issued :
> echo 'UsePAM yes' >> /etc/ssh/sshd_config.dpkg-new
> Unfortunately on one of my machines, the last line was not terminated
> with newline and i've come with a configuration file with some non used
> options. Depending on what could be the last line in the file, that
> could break some functionality (example : User foo was my
> last line and foo could not connect anymore because the line was wrong).
>
> Simple solution : ensure there is a newline terminating the last line
> with "echo -e '\nUsePAM yes' >>" instead.
Fixed in CVS, thanks.
--
Colin Watson [cjwatson@flatline.org.uk]
Reply to: