From: Dan Winship Date: Fri, 19 Dec 1997 23:26:02 +0000 (+0000) Subject: * login.c (try_afscall): try_afscall doesn't work / isn't needed X-Git-Tag: krb5-1.1-beta1~908 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2d54f691867bef2a9bce59efec0608b63fedeb9a;p=krb5.git * login.c (try_afscall): try_afscall doesn't work / isn't needed on systems without SIGSYS git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10340 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/bsd/ChangeLog b/src/appl/bsd/ChangeLog index 6848c1dbe..aef57fc54 100644 --- a/src/appl/bsd/ChangeLog +++ b/src/appl/bsd/ChangeLog @@ -1,3 +1,8 @@ +Fri Dec 19 18:19:42 1997 Dan Winship + + * login.c (try_afscall): try_afscall doesn't work / isn't needed + on systems without SIGSYS + Thu Dec 11 23:20:20 1997 Tom Yu * krlogind.c: diff --git a/src/appl/bsd/login.c b/src/appl/bsd/login.c index 3afe88091..f593c5312 100644 --- a/src/appl/bsd/login.c +++ b/src/appl/bsd/login.c @@ -1015,6 +1015,10 @@ destroy_tickets() int pagflag = 0; /* true if setpag() has been called */ +/* This doesn't seem to be declared in the AFS header files. */ +extern ktc_ForgetAllTokens (), setpag (); + +#ifdef SIGSYS static sigjmp_buf setpag_buf; static sigtype sigsys () @@ -1039,11 +1043,12 @@ static int try_afscall (scall) return retval; } -/* This doesn't seem to be declared in the AFS header files. */ -extern ktc_ForgetAllTokens (), setpag (); - #define try_setpag() try_afscall(setpag) #define try_unlog() try_afscall(ktc_ForgetAllTokens) +#else +#define try_setpag() (setpag() == 0) +#define try_unlog() (ktc_ForgetAllTokens() == 0) +#endif /* SIGSYS */ #endif /* SETPAG */ void