diff options
author | Kenneth G Raeburn <raeburn@mit.edu> | 1991-03-21 06:41:23 +0000 |
---|---|---|
committer | Kenneth G Raeburn <raeburn@mit.edu> | 1991-03-21 06:41:23 +0000 |
commit | 395d6610259cb7ef03afcd766f32b3d1ceb3de4e (patch) | |
tree | 418e35cc56c6bda29d152f631fa0f0d34ed5b825 | |
parent | 4f8e839666e0541235b2b39430cdb2df4a9345c5 (diff) |
Call ZGetRealm rather than referencing __Zephyr_realm directly.
-rw-r--r-- | lib/ZGetSender.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/ZGetSender.c b/lib/ZGetSender.c index 3f39392..4cd9d92 100644 --- a/lib/ZGetSender.c +++ b/lib/ZGetSender.c @@ -6,15 +6,16 @@ * $Source$ * $Author$ * - * Copyright (c) 1987 by the Massachusetts Institute of Technology. + * Copyright (c) 1987, 1991 by the Massachusetts Institute of Technology. * For copying and distribution information, see the file * "mit-copyright.h". */ /* $Header$ */ #ifndef lint -static char rcsid_ZGetSender_c[] = "$Header$"; -#endif lint +static char rcsid_ZGetSender_c[] = + "$Zephyr: ZGetSender.c,v 1.7 88/05/13 15:05:07 rfrench Exp $"; +#endif #include <zephyr/mit-copyright.h> @@ -43,19 +44,19 @@ char *ZGetSender() if ((tf_get_pname(pname) == KSUCCESS) && (tf_get_pinst(pinst) == KSUCCESS)) { (void) sprintf(sender, "%s%s%s@%s", pname, (pinst[0]?".":""), - pinst, __Zephyr_realm); + pinst, ZGetRealm ()); tf_close(); return (sender); } tf_close(); } -#endif KERBEROS +#endif /* XXX a uid_t is a u_short (now), but getpwuid * wants an int. AARGH! */ pw = getpwuid((int) getuid()); if (!pw) return ("unknown"); - (void) sprintf(sender, "%s@%s", pw->pw_name, __Zephyr_realm); + (void) sprintf(sender, "%s@%s", pw->pw_name, ZGetRealm ()); return (sender); } |