+2004-02-29 Alexandre Duret-Lutz <adl@gnu.org>
+
+ Fix for PR/413:
+ * lib/am/distdir.am (distcheck): Create $dc_destdir with `umask
+ 077 && mkdir' instead of `$(mkdir_p)'. This prevents possible
+ symlink attacks reported by Stefan Nordhausen.
+
2004-02-16 Alexandre Duret-Lutz <adl@gnu.org>
* doc/automake.texi (Multiple Outputs): More text, based on
distuninstallcheck \
&& chmod -R a-w "$$dc_install_base" \
&& ({ \
- (cd ../.. && $(mkdir_p) "$$dc_destdir") \
+ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
Shigio Yamaguchi shigio@tamacom.com
Simon Josefsson jas@extundo.com
Simon Richter sjr@debian.org
+Stefan Nordhausen nordhaus@informatik.hu-berlin.de
Stepan Kasal kasal@math.cas.cz
Steve M. Robbins steve@nyongwa.montreal.qc.ca
Sven Verdoolaege skimo@kotnet.org
## $(distdir) is).
&& ({ \
## Build the directory, so we can cd into it even if `make install'
-## didn't create it.
- (cd ../.. && $(mkdir_p) "$$dc_destdir") \
+## didn't create it. Use mkdir, not $(mkdir_p) because we want to
+## fail if the directory already exists (PR/413).
+ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \