]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
ssh-generator: add missing newline before [Service] and trailing NL to generated... 37649/head
authorMike Yuan <me@yhndnzj.com>
Wed, 28 May 2025 20:30:46 +0000 (22:30 +0200)
committerMike Yuan <me@yhndnzj.com>
Wed, 28 May 2025 20:30:46 +0000 (22:30 +0200)
src/ssh-generator/ssh-generator.c

index a903fd5d0816c8d1cce7015595d165a90d0bac11..eaa4dec764672626fa9288e49efdd53fec653805 100644 (file)
@@ -111,10 +111,11 @@ static int make_sshd_template_unit(
                         "[Unit]\n"
                         "Description=OpenSSH Per-Connection Server Daemon\n"
                         "Documentation=man:systemd-ssh-generator(8) man:sshd(8)\n"
+                        "\n"
                         "[Service]\n"
                         "ExecStart=-%s -i -o \"AuthorizedKeysFile ${CREDENTIALS_DIRECTORY}/ssh.ephemeral-authorized_keys-all .ssh/authorized_keys\"\n"
                         "StandardInput=socket\n"
-                        "ImportCredential=ssh.ephemeral-authorized_keys-all",
+                        "ImportCredential=ssh.ephemeral-authorized_keys-all\n",
                         sshd_binary);
 
                 r = fflush_and_check(f);