Antonio Larrosa
45f6d17800
package existed for a brief period of time during SLE 15 SP6/ Leap 15.6 development but even if it was removed from the repositories before GM, some users might have it in their systems from having tried a beta/RC release (boo#1227350). quoting was present in the user-supplied ssh_config(5) directive (bsc#1218215, CVE-2023-51385). OBS-URL: https://build.opensuse.org/package/show/network/openssh?expand=0&rev=270
18 lines
644 B
Diff
18 lines
644 B
Diff
# HG changeset patch
|
|
# Parent bad0c8b3b8d72abb6960ed85b57ee42352371738
|
|
Do not write a PID file when not daemonizing (e.g. when running from systemd)
|
|
|
|
Index: openssh-8.8p1/sshd.c
|
|
===================================================================
|
|
--- openssh-8.8p1.orig/sshd.c
|
|
+++ openssh-8.8p1/sshd.c
|
|
@@ -2129,7 +2129,7 @@ main(int ac, char **av)
|
|
* Write out the pid file after the sigterm handler
|
|
* is setup and the listen sockets are bound
|
|
*/
|
|
- if (options.pid_file != NULL && !debug_flag) {
|
|
+ if (!no_daemon_flag && options.pid_file != NULL && !debug_flag) {
|
|
FILE *f = fopen(options.pid_file, "w");
|
|
|
|
if (f == NULL) {
|