summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2002-06-23 00:37:10 +0000
committerBen Lindstrom <mouring@eviladmin.org>2002-06-23 00:37:10 +0000
commit57f08005d3626a4f96a1af18ad47d55f2241f6c3 (patch)
tree1fa8349d31161fc81f0fb470734a2ec69092006b /sshd.c
parent959de99aa0efdb6cd1c02294c3890f8bf7eab86e (diff)
- stevesk@cvs.openbsd.org 2002/06/22 20:05:27
[sshd.c] don't call setsid() if debugging or run from inetd; no "Operation not permitted" errors now; ok millert@ markus@
Diffstat (limited to 'sshd.c')
-rw-r--r--sshd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sshd.c b/sshd.c
index d60b13d66..6b29e7094 100644
--- a/sshd.c
+++ b/sshd.c
@@ -42,7 +42,7 @@
42 */ 42 */
43 43
44#include "includes.h" 44#include "includes.h"
45RCSID("$OpenBSD: sshd.c,v 1.247 2002/06/22 16:40:19 stevesk Exp $"); 45RCSID("$OpenBSD: sshd.c,v 1.248 2002/06/22 20:05:27 stevesk Exp $");
46 46
47#include <openssl/dh.h> 47#include <openssl/dh.h>
48#include <openssl/bn.h> 48#include <openssl/bn.h>
@@ -1354,7 +1354,7 @@ main(int ac, char **av)
1354 */ 1354 */
1355#if 0 1355#if 0
1356 /* XXX: this breaks Solaris */ 1356 /* XXX: this breaks Solaris */
1357 if (setsid() < 0) 1357 if (!debug_flag && !inetd_flag && setsid() < 0)
1358 error("setsid: %.100s", strerror(errno)); 1358 error("setsid: %.100s", strerror(errno));
1359#endif 1359#endif
1360 1360