From c70b5b7c61b3b4bb78374b1110ee8b25656434ad Mon Sep 17 00:00:00 2001 From: Kevin Steves Date: Sat, 22 Jun 2002 20:05:28 +0000 Subject: don't call setsid() if debugging or run from inetd; no "Operation not permitted" errors now; ok millert@ markus@ --- usr.bin/ssh/sshd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin') diff --git a/usr.bin/ssh/sshd.c b/usr.bin/ssh/sshd.c index b8671e966a8..df28a63d58e 100644 --- a/usr.bin/ssh/sshd.c +++ b/usr.bin/ssh/sshd.c @@ -42,7 +42,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: sshd.c,v 1.247 2002/06/22 16:40:19 stevesk Exp $"); +RCSID("$OpenBSD: sshd.c,v 1.248 2002/06/22 20:05:27 stevesk Exp $"); #include #include @@ -1312,7 +1312,7 @@ main(int ac, char **av) * setlogin() affects the entire process group. We don't * want the child to be able to affect the parent. */ - if (setsid() < 0) + if (!debug_flag && !inetd_flag && setsid() < 0) error("setsid: %.100s", strerror(errno)); /* -- cgit v1.2.3