summaryrefslogtreecommitdiffstats
path: root/src/appl
diff options
context:
space:
mode:
authorDan Winship <danw@mit.edu>1997-12-19 23:26:02 +0000
committerDan Winship <danw@mit.edu>1997-12-19 23:26:02 +0000
commit2d54f691867bef2a9bce59efec0608b63fedeb9a (patch)
tree54d6c67d7d0b0b0ad931ed17bf7073c62f2c9ca2 /src/appl
parent1077ca5e9e419f96d10c35fd2513974c132d4e06 (diff)
downloadkrb5-2d54f691867bef2a9bce59efec0608b63fedeb9a.tar.gz
krb5-2d54f691867bef2a9bce59efec0608b63fedeb9a.tar.xz
krb5-2d54f691867bef2a9bce59efec0608b63fedeb9a.zip
* 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
Diffstat (limited to 'src/appl')
-rw-r--r--src/appl/bsd/ChangeLog5
-rw-r--r--src/appl/bsd/login.c11
2 files changed, 13 insertions, 3 deletions
diff --git a/src/appl/bsd/ChangeLog b/src/appl/bsd/ChangeLog
index 6848c1dbe0..aef57fc547 100644
--- a/src/appl/bsd/ChangeLog
+++ b/src/appl/bsd/ChangeLog
@@ -1,3 +1,8 @@
+Fri Dec 19 18:19:42 1997 Dan Winship <danw@mit.edu>
+
+ * 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 <tlyu@mit.edu>
* krlogind.c:
diff --git a/src/appl/bsd/login.c b/src/appl/bsd/login.c
index 3afe88091f..f593c53121 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