summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorSam Hartman <hartmans@mit.edu>1995-10-15 18:58:16 +0000
committerSam Hartman <hartmans@mit.edu>1995-10-15 18:58:16 +0000
commitbfdaf70927d488ea1ea34be830180242efbac3f6 (patch)
tree0d955ebf4c7a1c8620905d0caa5ebbc317b0feed /src/util
parent2a3681258a507602160a4e4e099c1d22129791f2 (diff)
downloadkrb5-bfdaf70927d488ea1ea34be830180242efbac3f6.tar.gz
krb5-bfdaf70927d488ea1ea34be830180242efbac3f6.tar.xz
krb5-bfdaf70927d488ea1ea34be830180242efbac3f6.zip
Add return statement
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6969 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/util')
-rw-r--r--src/util/pty/ChangeLog26
-rw-r--r--src/util/pty/update_wtmp.c14
2 files changed, 13 insertions, 27 deletions
diff --git a/src/util/pty/ChangeLog b/src/util/pty/ChangeLog
index f581373ca..06158291d 100644
--- a/src/util/pty/ChangeLog
+++ b/src/util/pty/ChangeLog
@@ -1,28 +1,12 @@
-Fri Sep 29 14:18:03 1995 Theodore Y. Ts'o <tytso@dcl>
+Sat Oct 14 20:49:40 1995 Sam Hartman <hartmans@tertius.mit.edu>
- * configure.in:
- * Makefile.in: Use the SubdirLibraryRule defined in aclocal.m4 to
- create the DONE file (and to properly clean it up).
+ * update_wtmp.c (ptyint_update_wtmp): Insert fallback path for Sunos and others, return defined value.
-Mon Sep 25 16:42:36 1995 Theodore Y. Ts'o <tytso@dcl>
- * Makefile.in: Removed "foo:: foo-$(WHAT)" lines from the
- Makefile.
+Fri Aug 11 17:49:36 1995 Samuel D Hartman (hartmans@vorlon)
-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
-
-Tue Aug 15 21:42:16 1995 <tytso@rsts-11.mit.edu>
-
- * update_wtmp.c (ptyint_update_wtmp): If EMPTY is not defined,
- then set ut.ut_type to 0 instead.
+ * update_wtmp.c (ptyint_update_wtmp): If EMPTY not defined as a
+ utmp type, use DEAD_PROCESS.
Fri Aug 11 15:49:30 1995 Sam Hartman <hartmans@tertius.mit.edu>
diff --git a/src/util/pty/update_wtmp.c b/src/util/pty/update_wtmp.c
index 7bad3b635..2733b2a7b 100644
--- a/src/util/pty/update_wtmp.c
+++ b/src/util/pty/update_wtmp.c
@@ -24,10 +24,9 @@
#if !defined(WTMP_FILE) && defined(_PATH_WTMP)
#define WTMP_FILE _PATH_WTMP
#endif
-
-/* if it is *still* missing, assume SunOS */
-#ifndef WTMP_FILE
-#define WTMP_FILE "/usr/adm/wtmp"
+/* Other cases go here as necessary; else use /usr/adm/wtmp*/
+#ifndef PATH_WTMP
+#define PATH_WTMP "/usr/adm/wtmp"
#endif
long ptyint_update_wtmp (ent)
@@ -65,8 +64,9 @@ long ptyint_update_wtmp (ent)
#ifdef EMPTY
ut.ut_type = EMPTY;
#else
- ut.ut_type = 0;
-#endif
+ ut.ut_type = DEAD_PROCESS; /* For Linux brokenness*/
+#endif
+
}
#endif
if (write(fd, (char *)&ut, sizeof(struct utmp)) !=
@@ -76,4 +76,6 @@ long ptyint_update_wtmp (ent)
(void)close(fd);
}
#endif /* HAVE_UPDWTMP */
+ return 0; /* no current failure cases; file not found is not failure!*/
+
}