attacks.
* libltdl/Makefile.am, libltdl/loaders/Makefile.am
(install-data-local): Ditto.
+2005-03-02 Gary V. Vaughan <gary@gnu.org>
+
+ * libtoolize.m4sh (func_copy_cb): Use tar chof to avoid symlink
+ attacks.
+ * libltdl/Makefile.am, libltdl/loaders/Makefile.am
+ (install-data-local): Ditto.
+
2005-02-27 Gary V. Vaughan <gary@gnu.org>
In branch-2-0 (and in time, others) ltversion.m4 has a dot
## with libtoolize, we have to preserve their timestamps carefully:
install-data-local:
$(mkinstalldirs) $(DESTDIR)$(ltdldatadir)
- ( cd $(srcdir) && $(AMTAR) cf - $(ltdldatafiles); ) \
+ ( cd $(srcdir) && $(AMTAR) chof - $(ltdldatafiles); ) \
| ( cd $(DESTDIR)$(ltdldatadir) && $(AMTAR) xf -; )
## Make sure these will be cleaned even when they're not built by default:
## with libtoolize, we have to preserve their timestamps carefully:
install-data-local:
$(mkinstalldirs) $(DESTDIR)$(ltdldatadir)
- ( cd $(srcdir) && $(AMTAR) cf - $(ltdldatafiles) preopen.c; ) \
+ ( cd $(srcdir) && $(AMTAR) chof - $(ltdldatafiles); ) \
| ( cd $(DESTDIR)$(ltdldatadir) && $(AMTAR) xf -; )
if $opt_link && $LN_S "$my_srcdir/$my_file" "$my_destdir/$my_file"; then
$opt_quiet || func_echo "copying file \`$my_destdir/$my_file'"
copy_return_status=0
- elif { ( cd "$my_srcdir" && $TAR cf - "$my_file" 2> /dev/null; ) \
+ elif { ( cd "$my_srcdir" && $TAR chof - "$my_file" 2> /dev/null; ) \
| ( cd "$my_destdir" && "$TAR" xf - > /dev/null 2>&1; ) } ; then
$opt_quiet || func_echo "copying file \`$my_destdir/$my_file'"
copy_return_status=0