From: Tom Yu Date: Wed, 9 Aug 1995 00:48:10 +0000 (+0000) Subject: * update_utmp.c (pty_update_utmp): change #ifdef NO_UT_PID to X-Git-Tag: krb5-1.0-beta6~1353 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c14e04d59dd3624228a6aaf88b08df61e13f4429;p=krb5.git * update_utmp.c (pty_update_utmp): change #ifdef NO_UT_PID to #ifndef git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6473 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/util/pty/ChangeLog b/src/util/pty/ChangeLog index 5a4d41fe1..56d5e36ba 100644 --- a/src/util/pty/ChangeLog +++ b/src/util/pty/ChangeLog @@ -1,9 +1,14 @@ +Tue Aug 8 20:47:01 1995 Tom Yu + + * update_utmp.c (pty_update_utmp): change #ifdef NO_UT_PID to + #ifndef + Tue Aug 8 09:13:50 1995 Sam Hartman * open_slave.c (pty_open_slave): Dissociate from controlling terminal before calling revoke. (pty_open_slave): Don't ask for a controlling terminal unless we need it. -======= + Tue Aug 8 20:32:08 1995 Tom Yu * update_utmp.c: flush preprocessor directive to left margin. diff --git a/src/util/pty/update_utmp.c b/src/util/pty/update_utmp.c index dd5fbd9b4..9e40ec7e3 100644 --- a/src/util/pty/update_utmp.c +++ b/src/util/pty/update_utmp.c @@ -48,7 +48,7 @@ long pty_update_utmp (process_type, pid, username, line, host) strncpy(ent.ut_line, line+sizeof("/dev/")-1, sizeof(ent.ut_line)); ent.ut_time = time(0); -#ifdef NO_UT_PID +#ifndef NO_UT_PID ent.ut_pid = pid; switch ( process_type ) { case PTY_LOGIN_PROCESS: