aports/main/ngircd/client_user_len.patch
Natanael Copa 5ce8cb1004 main/ngircd: allow longer client usernames
This breaks the RFC but makes sense when using pam.
2012-03-02 12:08:22 +00:00

12 lines
513 B
Diff

--- ./src/ngircd/defines.h.orig
+++ ./src/ngircd/defines.h
@@ -40,7 +40,7 @@
* section 1.2.1 */
#define CLIENT_NICK_LEN 32 /* Maximum nick name length */
#define CLIENT_PASS_LEN 21 /* Max. password length */
-#define CLIENT_USER_LEN 10 /* Max. length of user name ("login")
+#define CLIENT_USER_LEN 64 /* Max. length of user name ("login")
see RFC 2812, section 1.2.1 */
#define CLIENT_NAME_LEN 32 /* Max. length of "real names" */
#define CLIENT_HOST_LEN 64 /* Max. host name length */