aboutsummaryrefslogtreecommitdiffstats
path: root/japanese
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2001-07-03 17:11:40 +0800
committerknu <knu@FreeBSD.org>2001-07-03 17:11:40 +0800
commite6182a4308fce8d1c3376a9efdfb9a9dad34260b (patch)
tree38b2ea59324723a242bf806f09035654143079d0 /japanese
parent58218417222453a3d954589827814eddbd52a3b8 (diff)
downloadfreebsd-ports-gnome-e6182a4308fce8d1c3376a9efdfb9a9dad34260b.tar.gz
freebsd-ports-gnome-e6182a4308fce8d1c3376a9efdfb9a9dad34260b.tar.zst
freebsd-ports-gnome-e6182a4308fce8d1c3376a9efdfb9a9dad34260b.zip
Apply a hot security fix against the 'macro exploit' problem.
(See: http://us1.samba.org/samba/whatsnew/macroexploit.html) PR: ports/28627 Submitted by: NAKAJI Hiroyuki <nakaji@jp.freebsd.org> (MAINTAINER)
Diffstat (limited to 'japanese')
-rw-r--r--japanese/samba/Makefile1
-rw-r--r--japanese/samba/files/patch-eb19
2 files changed, 20 insertions, 0 deletions
diff --git a/japanese/samba/Makefile b/japanese/samba/Makefile
index a9df9a128ab6..96a7c11bb549 100644
--- a/japanese/samba/Makefile
+++ b/japanese/samba/Makefile
@@ -7,6 +7,7 @@
PORTNAME= samba
PORTVERSION= ${SAMBA_VERSION}.j${SAMBA_JA_VERSION}
+PORTREVISION= 1
CATEGORIES= japanese net
MASTER_SITES= ftp://ftp.samba.gr.jp/pub/samba-jp/%SUBDIR%/ \
ftp://ftp.iij.ad.jp/pub/SAMBA/samba-jp/%SUBDIR%/ \
diff --git a/japanese/samba/files/patch-eb b/japanese/samba/files/patch-eb
new file mode 100644
index 000000000000..f30e3acc7cf9
--- /dev/null
+++ b/japanese/samba/files/patch-eb
@@ -0,0 +1,19 @@
+--- smbd/reply.c.orig Fri May 4 04:11:44 2001
++++ smbd/reply.c Mon Jul 2 13:11:28 2001
+@@ -101,6 +101,7 @@
+ trim_string( remote_machine, strlen( remote_machine )+1,
+ " ", sizeof( " " ), " ", sizeof( " " ));
+ strlower(remote_machine);
++ alpha_strcpy(remote_machine,remote_machine,sizeof(remote_machine)-1);
+
+ fstrcpy(local_machine,name1);
+ len = strlen(local_machine);
+@@ -111,6 +112,7 @@
+ trim_string( local_machine, strlen( local_machine )+1,
+ " ", sizeof( " " ), " ", sizeof( " " ));
+ strlower(local_machine);
++ alpha_strcpy(local_machine,local_machine,sizeof(local_machine)-1);
+
+ if (name_type == 'R') {
+ /* We are being asked for a pathworks session ---
+