Lines 1-8
Link Here
|
1 |
FreeBSD does not have LOGIN_NAME_MAX, but it has MAXLOGNAME instead, |
1 |
FreeBSD does not have LOGIN_NAME_MAX, but it has MAXLOGNAME instead, |
2 |
so use it as much as possible. Rewrite utmpx support. |
2 |
so use it as much as possible. Rewrite utmpx support. |
3 |
|
3 |
|
4 |
--- tnftpd.h.orig 2009-11-07 10:59:09.000000000 +0100 |
4 |
--- tnftpd.h.orig 2020-08-20 14:21:18.580517000 +0200 |
5 |
+++ tnftpd.h 2009-11-07 10:59:09.000000000 +0100 |
5 |
+++ tnftpd.h 2020-08-20 14:30:38.005942000 +0200 |
6 |
@@ -119,6 +119,8 @@ |
6 |
@@ -119,6 +119,8 @@ |
7 |
#endif |
7 |
#endif |
8 |
#if defined(HAVE_UTMP_H) |
8 |
#if defined(HAVE_UTMP_H) |
Lines 12-18
Link Here
|
12 |
#endif |
12 |
#endif |
13 |
|
13 |
|
14 |
#if defined(HAVE_POLL) |
14 |
#if defined(HAVE_POLL) |
15 |
@@ -561,8 +563,12 @@ |
15 |
@@ -565,7 +567,11 @@ |
16 |
#define TM_YEAR_BASE 1900 |
16 |
#define TM_YEAR_BASE 1900 |
17 |
|
17 |
|
18 |
#if !defined(LOGIN_NAME_MAX) |
18 |
#if !defined(LOGIN_NAME_MAX) |
Lines 20-27
Link Here
|
20 |
+# define LOGIN_NAME_MAX MAXLOGNAME |
20 |
+# define LOGIN_NAME_MAX MAXLOGNAME |
21 |
+#else |
21 |
+#else |
22 |
# define LOGIN_NAME_MAX (9) |
22 |
# define LOGIN_NAME_MAX (9) |
23 |
#endif |
|
|
24 |
+#endif |
23 |
+#endif |
|
|
24 |
#endif |
25 |
|
25 |
|
26 |
#if !defined(_POSIX_LOGIN_NAME_MAX) |
26 |
#if !defined(_POSIX_LOGIN_NAME_MAX) |
27 |
# define _POSIX_LOGIN_NAME_MAX LOGIN_NAME_MAX |
|
|