summaryrefslogtreecommitdiff
path: root/devel/automake14/patches/patch-ac
diff options
context:
space:
mode:
Diffstat (limited to 'devel/automake14/patches/patch-ac')
-rw-r--r--devel/automake14/patches/patch-ac26
1 files changed, 26 insertions, 0 deletions
diff --git a/devel/automake14/patches/patch-ac b/devel/automake14/patches/patch-ac
new file mode 100644
index 00000000000..ad8c4239eb0
--- /dev/null
+++ b/devel/automake14/patches/patch-ac
@@ -0,0 +1,26 @@
+$NetBSD: patch-ac,v 1.1.2.2 2011/06/11 05:12:04 sbd Exp $
+
+Fix for CVE-2009-4029 taken from here:
+
+http://git.savannah.gnu.org/gitweb/?p=automake.git;a=commitdiff;h=449d20aa12e13fefd848604225fc83d0c39c61d0
+
+--- automake.in.orig 2002-07-27 21:55:58.000000000 +0100
++++ automake.in 2011-06-10 10:34:37.000000000 +0100
+@@ -2336,7 +2336,7 @@
+ # Create dist directory.
+ $output_rules .= ("\t-rm -rf \$(distdir)\n"
+ . "\tmkdir \$(distdir)\n"
+- . "\t-chmod 777 \$(distdir)\n");
++ . "\t-chmod 755 \$(distdir)\n");
+ }
+
+ # Only run automake in `dist' target if --include-deps and
+@@ -2468,7 +2468,7 @@
+ . "\t" . ' test -d $(distdir)/$$subdir ' . "\\\n"
+ . "\t" . ' || mkdir $(distdir)/$$subdir ' . "\\\n"
+ . "\t" . ' || exit 1; ' . "\\\n"
+- . "\t" . ' chmod 777 $(distdir)/$$subdir; ' . "\\\n"
++ . "\t" . ' chmod 755 $(distdir)/$$subdir; ' . "\\\n"
+ . "\t" . ' (cd $$subdir'
+ . ' && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$('
+ . (($relative_dir eq '.') ? 'distdir' : 'top_distdir')