diff options
Diffstat (limited to 'japanese/canna-lib/files/patch-af')
-rw-r--r-- | japanese/canna-lib/files/patch-af | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/japanese/canna-lib/files/patch-af b/japanese/canna-lib/files/patch-af new file mode 100644 index 0000000..360e5d0 --- /dev/null +++ b/japanese/canna-lib/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); |