summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
Diffstat (limited to 'src/util')
-rw-r--r--src/util/pty/ChangeLog6
-rw-r--r--src/util/pty/update_utmp.c5
-rw-r--r--src/util/pty/update_wtmp.c5
3 files changed, 16 insertions, 0 deletions
diff --git a/src/util/pty/ChangeLog b/src/util/pty/ChangeLog
index dba1b0e60..db9fc635e 100644
--- a/src/util/pty/ChangeLog
+++ b/src/util/pty/ChangeLog
@@ -3,6 +3,12 @@ Mon Sep 25 16:42:36 1995 Theodore Y. Ts'o <tytso@dcl>
* Makefile.in: Removed "foo:: foo-$(WHAT)" lines from the
Makefile.
+Thu Sep 7 19:13:05 1995 Mark Eichin <eichin@cygnus.com>
+
+ * 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.
+
Thu Aug 24 18:40:48 1995 Theodore Y. Ts'o <tytso@dcl>
* .Sanitize: Update file list
diff --git a/src/util/pty/update_utmp.c b/src/util/pty/update_utmp.c
index f43ab3940..758d40a16 100644
--- a/src/util/pty/update_utmp.c
+++ b/src/util/pty/update_utmp.c
@@ -25,6 +25,11 @@
#define UTMP_FILE _PATH_UTMP
#endif
+/* if it is *still* missing, assume SunOS */
+#ifndef UTMP_FILE
+#define UTMP_FILE "/etc/utmp"
+#endif
+
long pty_update_utmp (process_type, pid, username, line, host)
int process_type;
int pid;
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;
{