summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-02-21 20:00:28 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-02-21 20:00:28 +0000
commite1bd29bc9edfdb6ec313c1d304cfce0b3f3823d6 (patch)
treeb50a616069214ece781e7e7de788560a70022bec
parentff793a27b8615f500e59811fa1c43eda909c35e6 (diff)
- (bal) Corrected SCO luid patch by svaughan <svaughan@asterion.com>
-rw-r--r--ChangeLog5
-rw-r--r--session.c12
2 files changed, 10 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index f1bf2250a..ddf30a0e9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
120010222
2 - (bal) Corrected SCO luid patch by svaughan <svaughan@asterion.com>
3
120010221 420010221
2 - (bal) Removed -L/usr/ucblib -R/usr/ucblib for Solaris platform. 5 - (bal) Removed -L/usr/ucblib -R/usr/ucblib for Solaris platform.
3 - (bal) Fixed OpenSSL rework to use $saved_*. Patch by Tim Rice 6 - (bal) Fixed OpenSSL rework to use $saved_*. Patch by Tim Rice
@@ -4090,4 +4093,4 @@
4090 - Wrote replacements for strlcpy and mkdtemp 4093 - Wrote replacements for strlcpy and mkdtemp
4091 - Released 1.0pre1 4094 - Released 1.0pre1
4092 4095
4093$Id: ChangeLog,v 1.809 2001/02/21 16:36:51 stevesk Exp $ 4096$Id: ChangeLog,v 1.810 2001/02/21 20:00:28 mouring Exp $
diff --git a/session.c b/session.c
index d771edb7a..01442aa9e 100644
--- a/session.c
+++ b/session.c
@@ -1080,6 +1080,12 @@ do_child(const char *command, struct passwd * pw, const char *term,
1080 } 1080 }
1081#endif 1081#endif
1082# else /* HAVE_LOGIN_CAP */ 1082# else /* HAVE_LOGIN_CAP */
1083#if defined(HAVE_GETLUID) && defined(HAVE_SETLUID)
1084 /* Sets login uid for accounting */
1085 if (getluid() == -1 && setluid(pw->pw_uid) == -1)
1086 error("setluid: %s", strerror(errno));
1087#endif /* defined(HAVE_GETLUID) && defined(HAVE_SETLUID) */
1088
1083 if (setlogin(pw->pw_name) < 0) 1089 if (setlogin(pw->pw_name) < 0)
1084 error("setlogin failed: %s", strerror(errno)); 1090 error("setlogin failed: %s", strerror(errno));
1085 if (setgid(pw->pw_gid) < 0) { 1091 if (setgid(pw->pw_gid) < 0) {
@@ -1131,12 +1137,6 @@ do_child(const char *command, struct passwd * pw, const char *term,
1131 } 1137 }
1132#endif /* HAVE_OSF_SIA */ 1138#endif /* HAVE_OSF_SIA */
1133 1139
1134#if defined(HAVE_GETLUID) && defined(HAVE_SETLUID)
1135 /* Sets login uid for accounting */
1136 if (getluid() == -1 && setluid(pw->pw_uid) == -1)
1137 error("setluid: %s", strerror(errno));
1138#endif /* defined(HAVE_GETLUID) && defined(HAVE_SETLUID) */
1139
1140#ifdef HAVE_CYGWIN 1140#ifdef HAVE_CYGWIN
1141 if (is_winnt) 1141 if (is_winnt)
1142#endif 1142#endif