diff options
author | Alan Coopersmith <alan.coopersmith@sun.com> | 2007-05-24 10:32:32 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2007-05-24 10:32:32 -0700 |
commit | e7f1c433dc0bd8e864cec68dbc120f27696bbba6 (patch) | |
tree | 45ce3593c3954063ebff714e9b501fa210418324 | |
parent | 677d028e41e890103679eec92b58044420b9b4c5 (diff) |
Bug #11020: xdm doesn't set SSH_AUTH_SOCK even though using with pam_ssh
Wasn't calling pam_setcred()/pam_getenvlist() if setusercontext() was present
X.Org Bugzilla #11020: <https://bugs.freedesktop.org/show_bug.cgi?id=11020>
-rw-r--r-- | session.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -627,6 +627,8 @@ StartClient ( return (0); } #endif /* QNX4 doesn't support multi-groups, no initgroups() */ +#endif /* !HAS_SETUSERCONTEXT */ + #ifdef USE_PAM if (pamh) { long i; @@ -647,6 +649,8 @@ StartClient ( } #endif + +#ifndef HAS_SETUSERCONTEXT if (setuid(verify->uid) < 0) { LogError ("setuid %d (user \"%s\") failed, errno=%d\n", verify->uid, name, errno); |