From b132dd99a0fb490bd5730c855cbf26cce28a1c8f Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Mon, 1 Aug 2016 06:26:30 +0000 Subject: Fix collision with getline(3) While here regen patches --- ftp/bsdftpd-ssl/files/patch-ftpd-logwtmp.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'ftp/bsdftpd-ssl/files/patch-ftpd-logwtmp.c') diff --git a/ftp/bsdftpd-ssl/files/patch-ftpd-logwtmp.c b/ftp/bsdftpd-ssl/files/patch-ftpd-logwtmp.c index 1347aa3b665a..0f8f22c01718 100644 --- a/ftp/bsdftpd-ssl/files/patch-ftpd-logwtmp.c +++ b/ftp/bsdftpd-ssl/files/patch-ftpd-logwtmp.c @@ -1,7 +1,6 @@ -diff -urN bsdftpd-ssl-1.1.0.ORI/ftpd/logwtmp.c ftpd/logwtmp.c ---- bsdftpd-ssl-1.1.0.ORI/ftpd/logwtmp.c 2004-12-20 02:44:42.000000000 +0800 -+++ ftpd/logwtmp.c 2012-06-15 15:34:03.000000000 +0800 -@@ -48,13 +48,18 @@ +--- ftpd/logwtmp.c.orig 2004-12-19 18:44:42 UTC ++++ ftpd/logwtmp.c +@@ -48,13 +48,18 @@ __FBSDID("$FreeBSD: src/libexec/ftpd/log #include #include @@ -21,7 +20,7 @@ diff -urN bsdftpd-ssl-1.1.0.ORI/ftpd/logwtmp.c ftpd/logwtmp.c #include #include #include -@@ -63,6 +68,7 @@ +@@ -63,6 +68,7 @@ __FBSDID("$FreeBSD: src/libexec/ftpd/log #include @@ -29,7 +28,7 @@ diff -urN bsdftpd-ssl-1.1.0.ORI/ftpd/logwtmp.c ftpd/logwtmp.c static int fd = -1; /* -@@ -94,7 +100,7 @@ +@@ -94,7 +100,7 @@ ftpd_logwtmp(line, name, addr) (void)strncpy(ut.ut_line, line, sizeof(ut.ut_line)); (void)strncpy(ut.ut_name, name, sizeof(ut.ut_name)); (void)strncpy(ut.ut_host, host, sizeof(ut.ut_host)); @@ -38,7 +37,7 @@ diff -urN bsdftpd-ssl-1.1.0.ORI/ftpd/logwtmp.c ftpd/logwtmp.c ut.ut_time = _time_to_time32(time(NULL)); #else /* Portable code from FreeBSD 4.8 */ (void)time(&ut.ut_time); -@@ -104,3 +110,31 @@ +@@ -104,3 +110,31 @@ ftpd_logwtmp(line, name, addr) (void)ftruncate(fd, buf.st_size); } } -- cgit v1.2.3