From f18cd162d310bbd69f272337e8adb57742d322c1 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Wed, 26 Jun 2002 19:12:59 +1000 Subject: - (djm) setlogin needs pgid==pid on BSD/OS; from itojun@ --- session.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'session.c') diff --git a/session.c b/session.c index 4bdf28d4..aadc82fe 100644 --- a/session.c +++ b/session.c @@ -1163,6 +1163,9 @@ do_setusercontext(struct passwd *pw) setpcred(pw->pw_name); #endif /* HAVE_SETPCRED */ #ifdef HAVE_LOGIN_CAP +#ifdef __bsdi__ + setpgid(0, 0); +#endif if (setusercontext(lc, pw, pw->pw_uid, (LOGIN_SETALL & ~LOGIN_SETPATH)) < 0) { perror("unable to set user context"); -- cgit v1.2.3