aboutsummaryrefslogtreecommitdiff
path: root/ftp/tnftpd/files/patch-src-ftpd.c
diff options
context:
space:
mode:
Diffstat (limited to 'ftp/tnftpd/files/patch-src-ftpd.c')
-rw-r--r--ftp/tnftpd/files/patch-src-ftpd.c27
1 files changed, 12 insertions, 15 deletions
diff --git a/ftp/tnftpd/files/patch-src-ftpd.c b/ftp/tnftpd/files/patch-src-ftpd.c
index 781d7e6a26f0..3158bc53b8be 100644
--- a/ftp/tnftpd/files/patch-src-ftpd.c
+++ b/ftp/tnftpd/files/patch-src-ftpd.c
@@ -1,20 +1,17 @@
---- 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;
-
-+#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;
+--- src/ftpd.c-orig Wed Aug 18 17:22:30 2004
++++ src/ftpd.c Wed Aug 18 17:27:28 2004
+@@ -450,12 +450,12 @@
+ exit(1);
+ } else if (l <= 0) {
+ syslog(LOG_WARNING, "using conservative LOGIN_NAME_MAX value");
+- curname_len = _POSIX_LOGIN_NAME_MAX;
++ curname_len = LOGIN_NAME_MAX;
} else
curname_len = (size_t)l;
-+#else
+ #else
+ /* using conservative LOGIN_NAME_MAX value */
+- curname_len = _POSIX_LOGIN_NAME_MAX;
+ curname_len = LOGIN_NAME_MAX;
-+#endif
+ #endif
curname = malloc(curname_len);
if (curname == NULL) {
- syslog(LOG_ERR, "malloc: %m");