On Monday, August 16, 2010 09:50:17 am Sergey Poznyakoff did opine: > Hugo Mildenberger <[email protected]> ha escrit: > > I've found no way to stop tar from expanding the "./" entry. > > Use either > > tar --strip=1 -xf some-archive.tar > > or > > tar -xf some-archive.tar --no-wildcards --no-recursive --exclude . > > > To avoid storing '.' in the archive use: > > find . -not -name '.' | tar cfT some-archive.tar - > > > Regards, > Sergey
I expected a better reply, Sergey. This is a copout over a huge security problem. Yes, it would be nice to 'fix' the user by telling him not to do that, but how are you going to do that from a mailing list that is not subcribed to by 99.9999999% of the tar users and who will never see this thread? Its tar that needs fixed, by precheckng the perms on . and refusing to touch . if it has no rights. Please do the right thing. -- Cheers, Gene "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) Don't you wish you had more energy... or less ambition?
