- (bal) Corrected SCO luid patch by svaughan <svaughan@asterion.com>

This commit is contained in:
Ben Lindstrom 2001-02-21 20:00:28 +00:00
parent ff793a27b8
commit e1bd29bc9e
2 changed files with 10 additions and 7 deletions

View File

@ -1,3 +1,6 @@
20010222
- (bal) Corrected SCO luid patch by svaughan <svaughan@asterion.com>
20010221 20010221
- (bal) Removed -L/usr/ucblib -R/usr/ucblib for Solaris platform. - (bal) Removed -L/usr/ucblib -R/usr/ucblib for Solaris platform.
- (bal) Fixed OpenSSL rework to use $saved_*. Patch by Tim Rice - (bal) Fixed OpenSSL rework to use $saved_*. Patch by Tim Rice
@ -4090,4 +4093,4 @@
- Wrote replacements for strlcpy and mkdtemp - Wrote replacements for strlcpy and mkdtemp
- Released 1.0pre1 - Released 1.0pre1
$Id: ChangeLog,v 1.809 2001/02/21 16:36:51 stevesk Exp $ $Id: ChangeLog,v 1.810 2001/02/21 20:00:28 mouring Exp $

View File

@ -1080,6 +1080,12 @@ do_child(const char *command, struct passwd * pw, const char *term,
} }
#endif #endif
# else /* HAVE_LOGIN_CAP */ # else /* HAVE_LOGIN_CAP */
#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) if (setlogin(pw->pw_name) < 0)
error("setlogin failed: %s", strerror(errno)); error("setlogin failed: %s", strerror(errno));
if (setgid(pw->pw_gid) < 0) { if (setgid(pw->pw_gid) < 0) {
@ -1131,12 +1137,6 @@ do_child(const char *command, struct passwd * pw, const char *term,
} }
#endif /* HAVE_OSF_SIA */ #endif /* HAVE_OSF_SIA */
#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) */
#ifdef HAVE_CYGWIN #ifdef HAVE_CYGWIN
if (is_winnt) if (is_winnt)
#endif #endif