diff options
author | Greg Hudson <ghudson@mit.edu> | 1994-10-31 01:01:45 +0000 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 1994-10-31 01:01:45 +0000 |
commit | ff1f700ccd899c03535e902699a95a7b227bf164 (patch) | |
tree | 1cb9f4fbaf9a23cb0f84f1555247226565894c53 /lib | |
parent | f1b6d6b0a78b62bdad75782a38663db87f8da23c (diff) |
Get srvtab from header file, not by consing up ZLiBDIR with srvtab.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ZCkAuth.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/ZCkAuth.c b/lib/ZCkAuth.c index 8ada8e5..58c9cba 100644 --- a/lib/ZCkAuth.c +++ b/lib/ZCkAuth.c @@ -46,11 +46,6 @@ int ZCheckAuthentication(notice, from) if (__Zephyr_server) { /* XXX: This routine needs to know where the server ticket file is! */ - static char srvtab[MAXPATHLEN]; - if (srvtab[0] == 0) { - strcpy (srvtab, Z_LIBDIR); - strcat (srvtab, "/srvtab"); - } if (notice->z_authent_len <= 0) /* bogus length */ return(ZAUTH_FAILED); if (ZReadAscii(notice->z_ascii_authent, @@ -62,7 +57,7 @@ int ZCheckAuthentication(notice, from) authent.length = notice->z_authent_len; result = krb_rd_req(&authent, SERVER_SERVICE, SERVER_INSTANCE, from->sin_addr.s_addr, - &dat, srvtab); + &dat, SERVER_SRVTAB); if (result == RD_AP_OK) { (void) memcpy((char *)__Zephyr_session, (char *)dat.session, sizeof(C_Block)); |