summaryrefslogtreecommitdiffstats
path: root/main/ngircd/client_user_len.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-03-02 12:07:22 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-03-02 12:08:22 +0000
commit5ce8cb10047286c5736213cb2737c3436ad42422 (patch)
treeab1ba01ccdd42892cc7b57b53eef0fd08f86613a /main/ngircd/client_user_len.patch
parent43c929ee2c3c3b46941e9acb7a7f75fb72388158 (diff)
downloadaports-5ce8cb10047286c5736213cb2737c3436ad42422.tar.bz2
aports-5ce8cb10047286c5736213cb2737c3436ad42422.tar.xz
main/ngircd: allow longer client usernames
This breaks the RFC but makes sense when using pam.
Diffstat (limited to 'main/ngircd/client_user_len.patch')
-rw-r--r--main/ngircd/client_user_len.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/main/ngircd/client_user_len.patch b/main/ngircd/client_user_len.patch
new file mode 100644
index 000000000..f2e564e71
--- /dev/null
+++ b/main/ngircd/client_user_len.patch
@@ -0,0 +1,11 @@
+--- ./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 */