move osf2c magic earlier. from Mark Davies <mark@MCS.VUW.AC.NZ>

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10288 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
2001-07-06 17:36:48 +00:00
parent 6634e8b098
commit 9b773c4a8f
2 changed files with 8 additions and 2 deletions

View File

@@ -475,6 +475,8 @@ do_login(const struct passwd *pwd, char *tty, char *ttyn)
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 @@ do_login(const struct passwd *pwd, char *tty, char *ttyn)
check_shadow(pwd, sp);
#endif
if(do_osfc2_magic(pwd->pw_uid))
exit(1);
#if defined(HAVE_GETUDBNAM) && defined(HAVE_SETLIM)
{
struct udb *udb;

View File

@@ -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