diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2004-02-03 17:57:21 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2004-02-03 17:57:21 +0000 |
commit | 4f8677eb55ec5dfc7a295d7d5f16399d86ca7122 (patch) | |
tree | 9c57776535c8a0bf90a33fff3f43da794c286968 /ftp/tnftpd/files | |
parent | c8a1c59a11edcce371dea6873b984ec16d9e82c6 (diff) | |
download | ports-4f8677eb55ec5dfc7a295d7d5f16399d86ca7122.tar.gz ports-4f8677eb55ec5dfc7a295d7d5f16399d86ca7122.zip |
Notes
Diffstat (limited to 'ftp/tnftpd/files')
-rw-r--r-- | ftp/tnftpd/files/patch-src-ftpd.c | 29 | ||||
-rw-r--r-- | ftp/tnftpd/files/patch-src-logutmp.c | 9 | ||||
-rw-r--r-- | ftp/tnftpd/files/patch-src-logwtmp.c | 15 | ||||
-rw-r--r-- | ftp/tnftpd/files/patch-tnftpd.h | 10 |
4 files changed, 38 insertions, 25 deletions
diff --git a/ftp/tnftpd/files/patch-src-ftpd.c b/ftp/tnftpd/files/patch-src-ftpd.c index a7afb8c90424..781d7e6a26f0 100644 --- a/ftp/tnftpd/files/patch-src-ftpd.c +++ b/ftp/tnftpd/files/patch-src-ftpd.c @@ -1,11 +1,20 @@ ---- src/ftpd.c-orig Mon Feb 17 23:52:49 2003 -+++ src/ftpd.c Mon Feb 17 23:56:52 2003 -@@ -98,6 +98,8 @@ - * SUCH DAMAGE. - */ +--- src/ftpd.c-orig Tue Feb 3 18:16:46 2004 ++++ src/ftpd.c Tue Feb 3 18:19:26 2004 +@@ -436,6 +436,7 @@ + if (EMPTYSTR(confdir)) + confdir = _DEFAULT_CONFDIR; -+#define SUPPORT_UTMP -+ - #if HAVE_TNFTPD_H - - #define FTP_NAMES ++#ifdef _SC_LOGIN_NAME_MAX + errno = 0; + l = sysconf(_SC_LOGIN_NAME_MAX); + if (l == -1 && errno != 0) { +@@ -446,6 +447,9 @@ + curname_len = _POSIX_LOGIN_NAME_MAX; + } else + curname_len = (size_t)l; ++#else ++ curname_len = LOGIN_NAME_MAX; ++#endif + curname = malloc(curname_len); + if (curname == NULL) { + syslog(LOG_ERR, "malloc: %m"); diff --git a/ftp/tnftpd/files/patch-src-logutmp.c b/ftp/tnftpd/files/patch-src-logutmp.c index 5579c69ed529..c3ac8f7ebd99 100644 --- a/ftp/tnftpd/files/patch-src-logutmp.c +++ b/ftp/tnftpd/files/patch-src-logutmp.c @@ -1,6 +1,6 @@ ---- src/logutmp.c-orig Mon Feb 24 07:38:44 2003 -+++ src/logutmp.c Thu Jan 22 11:59:38 2004 -@@ -40,10 +40,10 @@ +--- src/logutmp.c-orig Thu Jan 29 15:43:57 2004 ++++ src/logutmp.c Thu Jan 29 15:44:33 2004 +@@ -60,13 +60,13 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -8,6 +8,9 @@ #include <ttyent.h> #include <unistd.h> #include <utmp.h> + #ifdef SUPPORT_UTMPX + #include <utmpx.h> + #endif -#include <util.h> #include "extern.h" diff --git a/ftp/tnftpd/files/patch-src-logwtmp.c b/ftp/tnftpd/files/patch-src-logwtmp.c index d77f75dff7d7..ce3789457f1a 100644 --- a/ftp/tnftpd/files/patch-src-logwtmp.c +++ b/ftp/tnftpd/files/patch-src-logwtmp.c @@ -1,12 +1,13 @@ ---- src/logwtmp.c-orig Mon Feb 24 07:38:44 2003 -+++ src/logwtmp.c Thu Jan 22 12:05:36 2004 -@@ -46,10 +46,12 @@ +--- src/logwtmp.c-orig Thu Jan 29 15:45:32 2004 ++++ src/logwtmp.c Thu Jan 29 15:47:34 2004 +@@ -42,11 +42,13 @@ #include <sys/types.h> #include <sys/param.h> +#include <sys/socket.h> #include <sys/time.h> #include <sys/stat.h> + #include <sys/wait.h> #include <fcntl.h> +#include <netdb.h> @@ -14,14 +15,14 @@ #include <signal.h> #include <stdio.h> @@ -57,7 +59,6 @@ - #include <time.h> - #include <unistd.h> - #include <utmp.h> + #ifdef SUPPORT_UTMPX + #include <utmpx.h> + #endif -#include <util.h> #ifdef KERBEROS5 #include <krb5/krb5.h> -@@ -77,6 +78,26 @@ +@@ -80,6 +81,26 @@ { struct utmp ut; struct stat buf; diff --git a/ftp/tnftpd/files/patch-tnftpd.h b/ftp/tnftpd/files/patch-tnftpd.h index 018a2a02e118..3f251322c690 100644 --- a/ftp/tnftpd/files/patch-tnftpd.h +++ b/ftp/tnftpd/files/patch-tnftpd.h @@ -1,12 +1,12 @@ ---- tnftpd.h-orig Wed Feb 26 19:16:13 2003 -+++ tnftpd.h Sun Aug 3 15:49:57 2003 -@@ -404,6 +404,8 @@ - #define SECSPERDAY 86400 +--- tnftpd.h-orig Wed Dec 17 02:43:41 2003 ++++ tnftpd.h Tue Feb 3 18:14:15 2004 +@@ -429,5 +429,9 @@ #define TM_YEAR_BASE 1900 --#if ! defined(LOGIN_NAME_MAX) + #if ! defined(LOGIN_NAME_MAX) +#if defined(MAXLOGNAME) +# define LOGIN_NAME_MAX MAXLOGNAME +#elif ! defined(LOGIN_NAME_MAX) # define LOGIN_NAME_MAX (9) ++#endif #endif |