PR-3795936.long-username.patch   [plain text]


--- tnftpd-20091122/tnftpd.h	2009-11-07 01:59:09.000000000 -0800
+++ tnftpd/tnftpd.h	2010-01-28 14:43:35.000000000 -0800
@@ -561,8 +561,12 @@
 #define TM_YEAR_BASE	1900
 
 #if !defined(LOGIN_NAME_MAX)
+#ifdef __APPLE__
+# define LOGIN_NAME_MAX (256)
+#else
 # define LOGIN_NAME_MAX (9)
 #endif
+#endif
 
 #if !defined(_POSIX_LOGIN_NAME_MAX)
 # define _POSIX_LOGIN_NAME_MAX LOGIN_NAME_MAX