Package: tar
Version: 1.16-2etch1
Followup-For: Bug #377785

>From what I can tell, symlinks that are to be extracted in directories
first use a 0 byte file.  The directory is apparently writable during
extraction, then permissions are applied to the directory, and then
symlinks are converted.  This causes a problem when directories
have no write permission.  The result leaves the 0 byte file
(placeholder) but only yells EACCES when trying to unlink it.

Resources used to isolate this: (may help as a workaround too)
This workaround assumes double quotes are not part of your filenames :)

script "../my.transcript" -c "strace -o ../my.strace -- tar xvf 
../snapshot.mine"

grep EACCES ../my.strace | awk -F\" '{print $2}' \|
grep -F -f - --color ../my.transcript

find ./ -type d -print0 | xargs -0 chmod -v 755

grep EACCES ../my.strace | awk -F\" '{print $2}' \|
awk -F\" '{print $2}' | ... (next four in order)

xargs ls -l
xargs rm
xargs tar -xvf ../snapshot.mine -T -
xargs ls -l


Thanks, and enjoy.

Scott Edwards
-- Daxal Communications - http://daxal.com/?from=debian+bts

-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-6-vserver-amd64
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages tar depends on:
ii  libc6                  2.3.6.ds1-13etch7 GNU C Library: Shared libraries

tar recommends no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to