From 5ee9f90246fb418954340650e54be369bdc651f2 Mon Sep 17 00:00:00 2001 From: Kenneth G Raeburn Date: Fri, 19 Oct 1990 04:22:52 +0000 Subject: Run ZInitialize (which looks up the principal name) after doing the Kerberos init stuff. --- clients/zshutdown_notify/zshutdown_notify.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'clients/zshutdown_notify') diff --git a/clients/zshutdown_notify/zshutdown_notify.c b/clients/zshutdown_notify/zshutdown_notify.c index 8895b25..8c98d55 100644 --- a/clients/zshutdown_notify/zshutdown_notify.c +++ b/clients/zshutdown_notify/zshutdown_notify.c @@ -67,11 +67,6 @@ main(argc,argv) msg[1] = message; msg[2] = warning; - if ((retval = ZInitialize()) != ZERR_NONE) { - com_err(argv[0], retval, "while initializing"); - exit(1); - } - if (gethostname(hostname, MAXHOSTNAMELEN) < 0) { com_err(argv[0], errno, "while finding hostname"); exit(1); @@ -105,6 +100,11 @@ main(argc,argv) } #endif + if ((retval = ZInitialize()) != ZERR_NONE) { + com_err(argv[0], retval, "while initializing"); + exit(1); + } + ptr = message; for (;;) { -- cgit v1.2.3