vishalmishra434 / rpms / openssh

Forked from rpms/openssh a month ago
Clone
Jakub Jelen 6cf9b8
diff -up openssh-7.4p1/sshd.c.daemon openssh-7.4p1/sshd.c
Jakub Jelen 6cf9b8
--- openssh-7.4p1/sshd.c.daemon	2017-01-02 15:32:56.618447579 +0100
Jakub Jelen 6cf9b8
+++ openssh-7.4p1/sshd.c	2017-01-02 15:33:07.606442751 +0100
Jakub Jelen 6cf9b8
@@ -1943,7 +1943,7 @@ main(int ac, char **av)
Jakub Jelen 6cf9b8
 	 * terminal, and fork.  The original process exits.
Jakub Jelen 6cf9b8
 	 */
Jakub Jelen 6cf9b8
 	already_daemon = daemonized();
Jakub Jelen 6cf9b8
-	if (!(debug_flag || inetd_flag || no_daemon_flag || already_daemon)) {
Jakub Jelen 6cf9b8
+	if (!(debug_flag || inetd_flag || no_daemon_flag /*|| already_daemon*/)) {
Jakub Jelen 6cf9b8
 
Jakub Jelen 6cf9b8
 		if (daemon(0, 0) < 0)
Jakub Jelen 6cf9b8
 			fatal("daemon() failed: %.200s", strerror(errno));