mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-28 10:08:24 +00:00
Fix two other places where _?UTMP_FILE is not defined.
Noticed by: bento.freebsd.org
This commit is contained in:
parent
36ece1d5a0
commit
f5aef6a673
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=46585
12
security/srp/files/patch-base::libmisc::utmp.c
Normal file
12
security/srp/files/patch-base::libmisc::utmp.c
Normal file
@ -0,0 +1,12 @@
|
||||
--- base/libmisc/utmp.c.orig Tue Aug 21 09:00:37 2001
|
||||
+++ base/libmisc/utmp.c Tue Aug 21 09:01:33 2001
|
||||
@@ -371,6 +371,9 @@
|
||||
int found = 0;
|
||||
off_t pos;
|
||||
|
||||
+#if defined(__FreeBSD__)
|
||||
+#define _UTMP_FILE _PATH_UTMP
|
||||
+#endif
|
||||
if ((fd = open(_UTMP_FILE, O_RDWR)) < 0)
|
||||
return;
|
||||
|
12
security/srp/files/patch-telnet::telnetd::sys_term.c
Normal file
12
security/srp/files/patch-telnet::telnetd::sys_term.c
Normal file
@ -0,0 +1,12 @@
|
||||
--- telnet/telnetd/sys_term.c.orig Tue Aug 21 09:02:37 2001
|
||||
+++ telnet/telnetd/sys_term.c Tue Aug 21 09:03:33 2001
|
||||
@@ -111,6 +111,9 @@
|
||||
# else
|
||||
char wtmpf[] = "/usr/adm/wtmp";
|
||||
# endif
|
||||
+#if defined(__FreeBSD__)
|
||||
+#define UTMP_FILE _PATH_UTMP
|
||||
+#endif
|
||||
# ifdef UTMP_FILE
|
||||
char utmpf[] = UTMP_FILE;
|
||||
# else
|
Loading…
Reference in New Issue
Block a user