aboutsummaryrefslogtreecommitdiffstats
path: root/ftp/tnftpd/files/patch-src-logwtmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'ftp/tnftpd/files/patch-src-logwtmp.c')
-rw-r--r--ftp/tnftpd/files/patch-src-logwtmp.c21
1 files changed, 15 insertions, 6 deletions
diff --git a/ftp/tnftpd/files/patch-src-logwtmp.c b/ftp/tnftpd/files/patch-src-logwtmp.c
index d9cc5ab3812..fd51f1a9b15 100644
--- a/ftp/tnftpd/files/patch-src-logwtmp.c
+++ b/ftp/tnftpd/files/patch-src-logwtmp.c
@@ -2,11 +2,11 @@
FreeBSD does not have header file util.h, fortunately it is not needed. Add
header files sys/socket.h and netdb.h for getaddrinfo() and getnameinfo().
If host name is longer than UT_HOSTSIZE (16 characters), log numeric
-address to utmp.
+address to utmp. Rewrite utmpx support.
---- src/logwtmp.c.orig 2008-05-31 23:26:12.000000000 -0400
-+++ src/logwtmp.c 2008-05-31 23:26:12.000000000 -0400
-@@ -43,11 +43,13 @@
+--- src/logwtmp.c.orig 2008-09-21 16:44:01.000000000 +0200
++++ src/logwtmp.c 2008-09-21 16:44:01.000000000 +0200
+@@ -46,11 +46,13 @@
#include <sys/types.h>
#include <sys/param.h>
@@ -20,7 +20,7 @@ address to utmp.
#include <signal.h>
#include <stdio.h>
#include <string.h>
-@@ -60,7 +62,6 @@
+@@ -63,7 +65,6 @@
#ifdef SUPPORT_UTMPX
#include <utmpx.h>
#endif
@@ -28,7 +28,7 @@ address to utmp.
#ifdef KERBEROS5
#include <krb5/krb5.h>
-@@ -90,6 +91,26 @@
+@@ -95,6 +96,26 @@
struct utmp ut;
struct stat buf;
@@ -55,3 +55,12 @@ address to utmp.
if (fd < 0)
return;
if (fstat(fd, &buf) == 0) {
+@@ -109,7 +130,7 @@
+ }
+ #endif
+
+-#ifdef SUPPORT_UTMPX
++#if 0
+ static int fdx = -1;
+
+ void