This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Problem with newer tar versions - fixed



Newer tar version (e.g. 1.13.7) don't allow ".." in pathes:

make[4]: Entering directory `/usr/src/cvs/libc/aout'
cd ..; tar uhvf dist.tar ...
glibc-2.1.91/aout/Makefile
tar: Member names contain `..'
glibc-2.1.91/aout/../sysdeps/generic/enbl-secure.c

The effect is that those files are ignored completly.


I've committed the appended patch to fix this (thanks Andreas
Schwab!), 

Andreas

2000-08-01  Andreas Schwab  <schwab@suse.de>

        * Make-dist (dist): Resolve `..' in file names.

Index: Make-dist
===================================================================
RCS file: /cvs/glibc/libc/Make-dist,v
retrieving revision 1.93
diff -u -a -u -r1.93 Make-dist
--- Make-dist	2000/06/14 01:01:00	1.93
+++ Make-dist	2000/08/01 11:57:21
@@ -166,7 +166,9 @@
 	@cd ..; if test -f dist.tar; then c=u; else c=c; fi;	\
 	$(+cmdecho) "cd ..; tar $${c}h$(verbose)f dist.tar ...";	\
 	tar $${c}h$(verbose)f dist.tar \
-	    $(addprefix $(tardir)/$(subdir)/,$(filter-out $<,$^))
+	    $(addprefix $(tardir)/$(subdir)/,$(filter-out $< ../%,$^)) \
+	    $(addprefix $(tardir)/,\
+			$(patsubst ../%,%,$(filter-out $<,$(filter ../%,$^))))
 
 else	# Parent makefile.
 

-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]