1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-13 23:36:08 +00:00
freebsd-ports/mail/mh/files/patch-af
Masafumi Max NAKANE 5e801915d5 Due to hardcoded wrong utmp location, lib/mh/rcvtty didn't work.
(Closing PR #1965.)
Submitted by:	Tom Pusateri <pusateri@jnx.com>
PR-Ignored by:	pst
1997-01-07 09:26:49 +00:00

12 lines
347 B
Plaintext

--- uip/rcvtty.c.orig Tue Jan 7 18:04:11 1997
+++ uip/rcvtty.c Tue Jan 7 18:13:50 1997
@@ -158,7 +158,7 @@
user = getusr ();
#ifndef TTYD
- if ((uf = fopen ("/etc/utmp", "r")) == NULL)
+ if ((uf = fopen (_PATH_UTMP, "r")) == NULL)
exit (RCV_MBX);
while (fread ((char *) &ut, sizeof ut, 1, uf) == 1)
if (ut.ut_name[0] != 0