summaryrefslogtreecommitdiff
path: root/clients
diff options
context:
space:
mode:
authorGravatar Kenneth G Raeburn <raeburn@mit.edu>1990-10-19 04:22:52 +0000
committerGravatar Kenneth G Raeburn <raeburn@mit.edu>1990-10-19 04:22:52 +0000
commit5ee9f90246fb418954340650e54be369bdc651f2 (patch)
tree528934d1fcfba8a8d1736905800b2dd4ad5d73d0 /clients
parent56816ad900f3edcbac4651e696739c7ad32652b1 (diff)
Run ZInitialize (which looks up the principal name) after doing the
Kerberos init stuff.
Diffstat (limited to 'clients')
-rw-r--r--clients/zshutdown_notify/zshutdown_notify.c10
1 files changed, 5 insertions, 5 deletions
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 (;;) {