diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2002-06-21 00:01:18 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2002-06-21 00:01:18 +0000 |
commit | f0bfa839bda8309c45b807e55bb2b2dfac7a6f9a (patch) | |
tree | 78c8060f8eba6fe257229b727d5c0343c9bbba36 /session.c | |
parent | 3c73dfe55ebe0f302cc5a9bc590b96427eefb0a6 (diff) |
- (bal) Fixed AIX environment handling, use setpcred() instead of existing
code. (Bugzilla Bug 261)
Diffstat (limited to 'session.c')
-rw-r--r-- | session.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) { |