aboutsummaryrefslogtreecommitdiff
path: root/japanese/Canna
diff options
context:
space:
mode:
authorMasafumi Max NAKANE <max@FreeBSD.org>2002-08-08 04:53:19 +0000
committerMasafumi Max NAKANE <max@FreeBSD.org>2002-08-08 04:53:19 +0000
commit96dff61bf0cc33e1c4eadae3002ab84b13bd6e40 (patch)
tree55788a74d9ab34f7d0e85e95c17e6fdc3703ef9a /japanese/Canna
parentfebad4cafda11f34e53b0c3d5dcd393ca43991cf (diff)
downloadports-96dff61bf0cc33e1c4eadae3002ab84b13bd6e40.tar.gz
ports-96dff61bf0cc33e1c4eadae3002ab84b13bd6e40.zip
Notes
Diffstat (limited to 'japanese/Canna')
-rw-r--r--japanese/Canna/Makefile2
-rw-r--r--japanese/Canna/files/patch-af22
2 files changed, 23 insertions, 1 deletions
diff --git a/japanese/Canna/Makefile b/japanese/Canna/Makefile
index 64c14842d49b..15fc3bca1d0e 100644
--- a/japanese/Canna/Makefile
+++ b/japanese/Canna/Makefile
@@ -8,7 +8,7 @@
PORTNAME= Canna
PORTVERSION= 3.5b2
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= japanese
MASTER_SITES= ftp://ftp.tokyonet.ad.jp/pub/misc/Canna/Canna35/ \
ftp://ftp.biglobe.ne.jp/pub/tool/Canna/Canna35/ \
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);