summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
Diffstat (limited to 'session.c')
-rw-r--r--session.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/session.c b/session.c
index 4bdf28d45..aadc82fef 100644
--- a/session.c
+++ b/session.c
@@ -1163,6 +1163,9 @@ do_setusercontext(struct passwd *pw)
1163 setpcred(pw->pw_name); 1163 setpcred(pw->pw_name);
1164#endif /* HAVE_SETPCRED */ 1164#endif /* HAVE_SETPCRED */
1165#ifdef HAVE_LOGIN_CAP 1165#ifdef HAVE_LOGIN_CAP
1166#ifdef __bsdi__
1167 setpgid(0, 0);
1168#endif
1166 if (setusercontext(lc, pw, pw->pw_uid, 1169 if (setusercontext(lc, pw, pw->pw_uid,
1167 (LOGIN_SETALL & ~LOGIN_SETPATH)) < 0) { 1170 (LOGIN_SETALL & ~LOGIN_SETPATH)) < 0) {
1168 perror("unable to set user context"); 1171 perror("unable to set user context");