Article View: gnu.utils.bug
Article #688utmp file name in shellutils-1.7 who
From: Marc Boucher
Date: Sat, 29 Aug 1992 18:14
Date: Sat, 29 Aug 1992 18:14
32 lines
1193 bytes
1193 bytes
Hello; On recent BSD releases, the utmp file's name is defined in <utmp.h> as _PATH_UTMP, not UTMP_FILE. This breaks shellutils-1.7/src/who.c which assumes "/etc/utmp" (incorrect, now "/var/run/utmp" without compatiblity symlink on 386BSD at least) if the latter isn't defined. The following context diff implements the right thing. thanks. -- ^@-------~~--**----/ --- - Marc Boucher marc@CAM.ORG \----? ": /-----_-- - ----_|| +1 514 466 8932 - &- *** /tmp/,RCSt1001025 Sat Aug 29 11:02:06 1992 --- who.c Sat Aug 29 11:00:22 1992 *************** *** 43,49 **** --- 43,53 ---- #include "system.h" #ifndef UTMP_FILE + #ifdef _PATH_UTMP + #define UTMP_FILE _PATH_UTMP + #else #define UTMP_FILE "/etc/utmp" + #endif #endif #ifndef MAXHOSTNAMELEN
Technical Details
Message-ID:
<199208291814.AA02792@eqsun5.Civil.Concordia.CA>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!cam.org!marcShow Full Headers
Complete Article Headers
Newsgroups: gnu.utils.bug Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!cam.org!marc From: marc@cam.org (Marc Boucher) Subject: utmp file name in shellutils-1.7 who Message-ID: <199208291814.AA02792@eqsun5.Civil.Concordia.CA> Sender: gnulists@ai.mit.edu Organization: Gnus Not Usenet Distribution: gnu Date: Sat, 29 Aug 1992 18:14:21 GMT Approved: bug-gnu-utils@prep.ai.mit.edu Lines: 33