Package: tar
Version: 1.23-3
Severity: normal

Moin,

I just got hit by this bug as well. Unfortunately i cannot make a simple
testcase that reproduces this bug. All my attempts failed. But at least
i can reproduce it. 

What i did was:

tar cf - blah | (cd /somewhere/else; tar xf -)

an strace of the first tar for one of the broken symlinks looks like this:
---schnipp---
5798  lstat64("containingDirectory/symlink_with_long_name_and_absolut_path", 
{st_dev=makedev(8, 128), st_ino=12124195, st_mode=S_IFLNK|0777, st_nlink=1, 
st_uid=0, st_gid=0, st_blksize=4096, st_blocks=0, st_size=58, 
st_atime=2010/09/20-23:16:44, st_mtime=2010/09/19-21:40:51, 
st_ctime=2010/09/19-21:40:51}) = 0
5798  readlink("containingDirectory/symlink_with_long_name_and_absolut_path", 
"/directory/the/symlink/is/pointing/to"..., 59) = 58
---schnapp---

and for the second tar:

---schnipp---
5799  open("containingDirectory/symlink_with_long_name_and_absolut_path", 
O_WRONLY|O_CREAT|O_EXCL|O_LARGEFILE, 0) = 3
5799  fstat64(3, {st_dev=makedev(8, 32), st_ino=27373569, st_mode=S_IFREG, 
st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=0, st_size=0, 
st_atime=2012/04/10-22:04:15, st_mtime=2012/04/10-22:04:15, 
st_ctime=2012/04/10-22:04:15}) = 0
5799  close(3) = 0
---schnapp---


As can be seen, a file is created instead of a symlink. Why, i don't know.
Please let me know if you need more info

                        Attila Kinali

-- System Information:
Debian Release: 6.0.4
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 3.3.1 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages tar depends on:
ii  libc6                         2.11.3-2   Embedded GNU C Library: Shared lib

tar recommends no packages.

Versions of packages tar suggests:
ii  bzip2                   1.0.5-6+squeeze1 high-quality block-sorting file co
pn  ncompress               <none>           (no description available)
ii  xz-utils                5.0.0-2          XZ-format compression utilities

-- 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