🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Marc Boucher Sat, 29 Aug 1992 18:14
utmp file name in shellutils-1.7 who
#688
Author: Marc Boucher
Date: Sat, 29 Aug 1992 18:14
32 lines
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads