summaryrefslogtreecommitdiffstats
path: root/session.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2010-11-24 00:09:13 +0100
committerDarren Tucker <dtucker@zip.com.au>2010-11-24 00:09:13 +0100
commitd995712383c043c4f9d8ca52363e6e1df128dc72 (patch)
treeb621adc47831c9f85723c1a70d24f49d6ba33b15 /session.c
parent - (dtucker) Bug #1840: fix warning when configuring --with-ssl-engine, patch (diff)
downloadopenssh-d995712383c043c4f9d8ca52363e6e1df128dc72.tar.xz
openssh-d995712383c043c4f9d8ca52363e6e1df128dc72.zip
- (dtucker) [platform.c session.c] Move the getluid call out of session.c and
into the platform-specific code Only affects SCO, tested by and ok tim@.
Diffstat (limited to 'session.c')
-rw-r--r--session.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/session.c b/session.c
index 8c6022bf6..3758f0fd1 100644
--- a/session.c
+++ b/session.c
@@ -1481,12 +1481,6 @@ do_setusercontext(struct passwd *pw)
exit(1);
}
#else
-# if defined(HAVE_GETLUID) && defined(HAVE_SETLUID)
- /* Sets login uid for accounting */
- if (getluid() == -1 && setluid(pw->pw_uid) == -1)
- error("setluid: %s", strerror(errno));
-# endif /* defined(HAVE_GETLUID) && defined(HAVE_SETLUID) */
-
if (setlogin(pw->pw_name) < 0)
error("setlogin failed: %s", strerror(errno));
if (setgid(pw->pw_gid) < 0) {