diff options
author | Greg Hudson <ghudson@mit.edu> | 1997-10-25 17:47:11 +0000 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 1997-10-25 17:47:11 +0000 |
commit | 2b03e82ddfe5797dab4a2811cb2755a2b7cc45b7 (patch) | |
tree | 337a1256ea163b161c0f66b3b33fe3d88af74fc0 /clients/zshutdown_notify | |
parent | 304bb68ebcb9682d28b41d86d59e9ac5f9d7d4a3 (diff) |
ZEPHYR_USES_KERBEROS -> HAVE_KRB4; ZEPHYR_USES_HESIOD -> HAVE_HESIOD
Diffstat (limited to 'clients/zshutdown_notify')
-rw-r--r-- | clients/zshutdown_notify/zshutdown_notify.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clients/zshutdown_notify/zshutdown_notify.c b/clients/zshutdown_notify/zshutdown_notify.c index e7727e6..4db5a32 100644 --- a/clients/zshutdown_notify/zshutdown_notify.c +++ b/clients/zshutdown_notify/zshutdown_notify.c @@ -29,7 +29,7 @@ static const char *rcsid_zshutdown_notify_c = #define N_DEF_FORMAT "From $sender:\n@bold(Shutdown message from $1 at $time)\n@center(System going down, message is:)\n\n$2\n\n@center(@bold($3))" #define N_FIELD_CNT 3 -#ifdef ZEPHYR_USES_KERBEROS +#ifdef HAVE_KRB4 #define SVC_NAME "rcmd" #endif @@ -52,7 +52,7 @@ main(argc,argv) char msgbuff[BUFSIZ], message[Z_MAXPKTLEN], *ptr; char scratch[BUFSIZ]; char *msg[N_FIELD_CNT]; -#ifdef ZEPHYR_USES_KERBEROS +#ifdef HAVE_KRB4 char tkt_filename[MAXPATHLEN]; char rlm[REALM_SZ]; char hn2[MAXHOSTNAMELEN]; @@ -73,7 +73,7 @@ main(argc,argv) sprintf(scratch, warning, hostname); msg[2] = scratch; -#ifdef ZEPHYR_USES_KERBEROS +#ifdef HAVE_KRB4 (void) sprintf(tkt_filename, "/tmp/tkt_zshut_%d", getpid()); krb_set_tkt_string(tkt_filename); @@ -128,7 +128,7 @@ main(argc,argv) notice.z_default_format = N_DEF_FORMAT; retval = ZSendList(¬ice, msg, N_FIELD_CNT, ZAUTH); -#ifdef ZEPHYR_USES_KERBEROS +#ifdef HAVE_KRB4 (void) dest_tkt(); #endif |