summaryrefslogtreecommitdiff
path: root/japanese/Canna/files/patch-af
diff options
context:
space:
mode:
Diffstat (limited to 'japanese/Canna/files/patch-af')
-rw-r--r--japanese/Canna/files/patch-af22
1 files changed, 22 insertions, 0 deletions
diff --git a/japanese/Canna/files/patch-af b/japanese/Canna/files/patch-af
new file mode 100644
index 000000000000..360e5d011617
--- /dev/null
+++ b/japanese/Canna/files/patch-af
@@ -0,0 +1,22 @@
+--- server/misc.c.orig Wed Nov 27 16:30:30 1996
++++ server/misc.c Thu Aug 8 13:44:03 2002
+@@ -649,12 +649,19 @@
+
+ if (client->username && client->username[0]) {
+ if (client->groupname && client->groupname[0]) {
++ if (strlen(DDUSER) + strlen(client->username) +
++ strlen(DDGROUP) + strlen(client->groupname) +
++ strlen(DDPATH) + 4 >= 256)
++ return ( -1 );
+ sprintf(dichome, "%s/%s:%s/%s:%s",
+ DDUSER, client->username,
+ DDGROUP, client->groupname,
+ DDPATH);
+ }
+ else {
++ if (strlen(DDUSER) + strlen(client->username) +
++ strlen(DDPATH) + 2 >= 256)
++ return ( -1 );
+ sprintf(dichome, "%s/%s:%s",
+ DDUSER, client->username,
+ DDPATH);