summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
Diffstat (limited to 'session.c')
-rw-r--r--session.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/session.c b/session.c
index a2d8a9c43..f6f9c5448 100644
--- a/session.c
+++ b/session.c
@@ -1153,9 +1153,9 @@ do_setusercontext(struct passwd *pw)
1153#else /* HAVE_CYGWIN */ 1153#else /* HAVE_CYGWIN */
1154 if (getuid() == 0 || geteuid() == 0) { 1154 if (getuid() == 0 || geteuid() == 0) {
1155#endif /* HAVE_CYGWIN */ 1155#endif /* HAVE_CYGWIN */
1156#ifdef HAVE_GETUSERATTR 1156#ifdef HAVE_SETPCRED
1157 set_limits_from_userattr(pw->pw_name); 1157 setpcred(pw->pw_name);
1158#endif /* HAVE_GETUSERATTR */ 1158#endif /* HAVE_SETPCRED */
1159#ifdef HAVE_LOGIN_CAP 1159#ifdef HAVE_LOGIN_CAP
1160 if (setusercontext(lc, pw, pw->pw_uid, 1160 if (setusercontext(lc, pw, pw->pw_uid,
1161 (LOGIN_SETALL & ~LOGIN_SETPATH)) < 0) { 1161 (LOGIN_SETALL & ~LOGIN_SETPATH)) < 0) {