summaryrefslogtreecommitdiffstats
path: root/src/util/pty/update_wtmp.c
diff options
context:
space:
mode:
authorMark Eichin <eichin@mit.edu>1995-09-29 03:15:32 +0000
committerMark Eichin <eichin@mit.edu>1995-09-29 03:15:32 +0000
commit00a09b9d6a4a366b6e6dbd15e1e1e273bb0dc9c1 (patch)
tree2946779cbebc6cd0b446999c3eaf303398f9360d /src/util/pty/update_wtmp.c
parent4e848f98be5178109409aacfbc7e7749d54c5499 (diff)
downloadkrb5-00a09b9d6a4a366b6e6dbd15e1e1e273bb0dc9c1.tar.gz
krb5-00a09b9d6a4a366b6e6dbd15e1e1e273bb0dc9c1.tar.xz
krb5-00a09b9d6a4a366b6e6dbd15e1e1e273bb0dc9c1.zip
(gets it to actually build on sunos, and provides a fair guess for
other systems) * update_utmp.c: ultimately fall back to /etc/utmp for UTMP_FILE, if it is still missing after all previous efforts. * update_wtmp.c: /usr/adm/wtmp for WTMP_FILE likewise. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6882 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/util/pty/update_wtmp.c')
-rw-r--r--src/util/pty/update_wtmp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/util/pty/update_wtmp.c b/src/util/pty/update_wtmp.c
index c71aba311..7bad3b635 100644
--- a/src/util/pty/update_wtmp.c
+++ b/src/util/pty/update_wtmp.c
@@ -25,6 +25,11 @@
#define WTMP_FILE _PATH_WTMP
#endif
+/* if it is *still* missing, assume SunOS */
+#ifndef WTMP_FILE
+#define WTMP_FILE "/usr/adm/wtmp"
+#endif
+
long ptyint_update_wtmp (ent)
struct utmp *ent;
{