From 3d556d39ab8af94554e9638b7354afb799bbc5c1 Mon Sep 17 00:00:00 2001 From: Sam Hartman Date: Thu, 14 Dec 1995 20:03:10 +0000 Subject: [PATCH] Merge in changes between 1.4 and 1.5 in RCS file; this delta is Mark Eichin's patch to fall back to /usr/adm/wtmp. Somehow, this was lost in 1.6. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7232 dc483132-0cff-0310-8789-dd5450dbe970 --- src/util/pty/update_wtmp.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/util/pty/update_wtmp.c b/src/util/pty/update_wtmp.c index e5a4d3c86..4666b44cc 100644 --- a/src/util/pty/update_wtmp.c +++ b/src/util/pty/update_wtmp.c @@ -24,11 +24,14 @@ #if !defined(WTMP_FILE) && defined(_PATH_WTMP) #define WTMP_FILE _PATH_WTMP #endif -/* Other cases go here as necessary; else use /usr/adm/wtmp*/ -#ifndef PATH_WTMP -#define PATH_WTMP "/usr/adm/wtmp" + + +/* if it is *still* missing, assume SunOS */ +#ifndef WTMP_FILE +#define WTMP_FILE "/usr/adm/wtmp" #endif + long ptyint_update_wtmp (ent , host) struct utmp *ent; char *host; -- 2.26.2