summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2002-06-21 00:01:18 +0000
committerBen Lindstrom <mouring@eviladmin.org>2002-06-21 00:01:18 +0000
commitf0bfa839bda8309c45b807e55bb2b2dfac7a6f9a (patch)
tree78c8060f8eba6fe257229b727d5c0343c9bbba36 /session.c
parent3c73dfe55ebe0f302cc5a9bc590b96427eefb0a6 (diff)
- (bal) Fixed AIX environment handling, use setpcred() instead of existing
code. (Bugzilla Bug 261)
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 a2d8a9c4..f6f9c544 100644
--- a/session.c
+++ b/session.c
@@ -1153,9 +1153,9 @@ do_setusercontext(struct passwd *pw)
#else /* HAVE_CYGWIN */
if (getuid() == 0 || geteuid() == 0) {
#endif /* HAVE_CYGWIN */
-#ifdef HAVE_GETUSERATTR
- set_limits_from_userattr(pw->pw_name);
-#endif /* HAVE_GETUSERATTR */
+#ifdef HAVE_SETPCRED
+ setpcred(pw->pw_name);
+#endif /* HAVE_SETPCRED */
#ifdef HAVE_LOGIN_CAP
if (setusercontext(lc, pw, pw->pw_uid,
(LOGIN_SETALL & ~LOGIN_SETPATH)) < 0) {