summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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