SHA256
1
0
forked from pool/openssh

Accepting request 130946 from home:elvigia:branches:network

- When not daemonizing, such is used with systemd, no not
 create a PID file

OBS-URL: https://build.opensuse.org/request/show/130946
OBS-URL: https://build.opensuse.org/package/show/network/openssh?expand=0&rev=35
This commit is contained in:
Petr Cerny 2012-08-16 12:55:50 +00:00 committed by Git OBS Bridge
parent cfb80ff52c
commit f948d6768b
3 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- sshd.c.orig
+++ sshd.c
@@ -1812,7 +1812,7 @@ main(int ac, char **av)
* Write out the pid file after the sigterm handler
* is setup and the listen sockets are bound
*/
- if (!debug_flag) {
+ if (!debug_flag || !no_daemon_flag) {
FILE *f = fopen(options.pid_file, "w");
if (f == NULL) {

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Aug 15 19:25:08 UTC 2012 - crrodriguez@opensuse.org
- When not daemonizing, such is used with systemd, no not
create a PID file
-------------------------------------------------------------------
Mon Jun 18 11:34:51 UTC 2012 - coolo@suse.com

View File

@ -70,6 +70,7 @@ Patch18: %{name}-5.9p1-sshconfig-knownhostschanges.diff
Patch19: %{name}-5.9p1-host_ident.diff
Patch20: converter-linking.patch
Patch21: openssh-nocrazyabicheck.patch
Patch22: openssh-nodaemon-nopid.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} > 1140
BuildRequires: systemd
@ -109,6 +110,7 @@ also be forwarded over the secure channel.
%patch19 -p1
%patch20
%patch21
%patch22
cp -v %{SOURCE4} .
cp -v %{SOURCE6} .