diff options
author | Jun Kuriyama <kuriyama@FreeBSD.org> | 2000-06-30 04:35:23 +0000 |
---|---|---|
committer | Jun Kuriyama <kuriyama@FreeBSD.org> | 2000-06-30 04:35:23 +0000 |
commit | ab5bccd127cf97d783e212fbbe84d2655e5fd014 (patch) | |
tree | 3aa9b49cfeb30c7613112d418b0b0b490c202325 /japanese/canna-server | |
parent | b5f03b15f606a644eeeb1ac3fcd35fd5141ea65b (diff) |
Add length of delimiters.
Suggested by: kjm@RINS.RYUKOKU.AC.JP
Notes
Notes:
svn path=/head/; revision=30008
Diffstat (limited to 'japanese/canna-server')
-rw-r--r-- | japanese/canna-server/files/patch-af | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/japanese/canna-server/files/patch-af b/japanese/canna-server/files/patch-af index 656d80769276..48328fc6e459 100644 --- a/japanese/canna-server/files/patch-af +++ b/japanese/canna-server/files/patch-af @@ -6,7 +6,7 @@ if (client->groupname && client->groupname[0]) { + if (strlen(DDUSER) + strlen(client->username) + + strlen(DDGROUP) + strlen(client->groupname) + -+ strlen(DDPATH) >= 256) ++ strlen(DDPATH) + 4 >= 256) + return ( -1 ); sprintf(dichome, "%s/%s:%s/%s:%s", DDUSER, client->username, @@ -15,7 +15,7 @@ } else { + if (strlen(DDUSER) + strlen(client->username) + -+ strlen(DDPATH) >= 256) ++ strlen(DDPATH) + 2 >= 256) + return ( -1 ); sprintf(dichome, "%s/%s:%s", DDUSER, client->username, |