From 96c5c2e65d084afb603b4b138fdc8d5f3f2d1d83 Mon Sep 17 00:00:00 2001 From: Michael Wesemann Date: Fri, 14 Aug 2026 10:55:10 +0200 Subject: [PATCH] setup.ssh: keep the newline when commenting out AcceptEnv The $ in /(^\s*AcceptEnv.*$)/ matches before the newline, so $1 did not contain it and the following line was appended to the comment - which commented out the Subsystem sftp line on a stock Debian sshd_config. Co-Authored-By: Claude Opus 5 --- setup.ssh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.ssh b/setup.ssh index 1054d5b..bd0faae 100755 --- a/setup.ssh +++ b/setup.ssh @@ -9,7 +9,7 @@ while() { if (/^\s*\#*\s*PermitRootLogin/) { $out.="PermitRootLogin yes\n" ; } elsif (/(^\s*AcceptEnv.*$)/) { - $out.="#$1"; + $out.="#$1\n"; } else { $out.=$_; }