diff options
author | Damien Miller <djm@mindrot.org> | 2002-06-26 19:12:59 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2002-06-26 19:12:59 +1000 |
commit | f18cd162d310bbd69f272337e8adb57742d322c1 (patch) | |
tree | f3bbd59ab95322a349971709fafd2c45b76cdd65 /session.c | |
parent | 6de3dfd929adaa1d0a05c98cd9df4a48ed534205 (diff) | |
download | openssh-git-f18cd162d310bbd69f272337e8adb57742d322c1.tar.gz |
- (djm) setlogin needs pgid==pid on BSD/OS; from itojun@
Diffstat (limited to 'session.c')
-rw-r--r-- | session.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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"); |