[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
osfc2 patches for 0.4b
Hi,
Needed to make the following patches to get the OSFC2 stuff to work on
Tru64 4.0E. The call to getespwuid() in do_osfc2_magic() needs to happen
while you are still running as root.
cheers
mark
--- appl/login/login_locl.h~ Wed Aug 23 02:05:35 2000
+++ appl/login/login_locl.h Tue Apr 24 23:18:24 2001
@@ -90,6 +90,12 @@
#include <otp.h>
#endif
+#ifdef HAVE_OSFC2
+#define getargs OSFgetargs
+#include <prot.h>
+#undef getargs
+#endif
+
#ifndef _PATH_BSHELL
#define _PATH_BSHELL "/bin/sh"
#endif
--- appl/login/login.c~ Thu Jul 5 16:38:31 2001
+++ appl/login/login.c Thu Jul 5 22:49:19 2001
@@ -475,6 +475,8 @@
exit(1);
}
#endif
+ if(do_osfc2_magic(pwd->pw_uid))
+ exit(1);
if(setgid(pwd->pw_gid)){
warn("setgid(%u)", (unsigned)pwd->pw_gid);
if(rootlogin == 0)
@@ -491,8 +493,6 @@
check_shadow(pwd, sp);
#endif
- if(do_osfc2_magic(pwd->pw_uid))
- exit(1);
#if defined(HAVE_GETUDBNAM) && defined(HAVE_SETLIM)
{
struct udb *udb;