From: Sam Hartman Date: Sun, 15 Oct 1995 18:58:16 +0000 (+0000) Subject: Add return statement X-Git-Tag: krb5-1.0-beta6~900 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bfdaf70927d488ea1ea34be830180242efbac3f6;p=krb5.git Add return statement git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6969 dc483132-0cff-0310-8789-dd5450dbe970 --- 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 +Sat Oct 14 20:49:40 1995 Sam Hartman - * 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 - * 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 - - * 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 - - * .Sanitize: Update file list - -Tue Aug 15 21:42:16 1995 - - * 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 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!*/ + }