Your message dated Tue, 20 Jul 2010 16:04:22 +0000
with message-id <[email protected]>
and subject line Bug#576876: fixed in tar 1.23-2.1
has caused the Debian Bug report #576876,
regarding tar: infinite loop in case of existing symlink
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
576876: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=576876
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: tar
Version: 1.23-1
Severity: important

Hello!

I found a problem in this version of tar.

    tho...@boole:/tmp/d $ ar x 
../tmp.cgJjcD65ng/target/var/cache/apt/archives/bash_4.1-2_hurd-i386.deb
    tho...@boole:/tmp/d $ gunzip < data.tar.gz | tar -xkf -
    tho...@boole:/tmp/d $ ls -l bin/sh
    lrwxrwxrwx 1 thomas thomas 4  8. Apr 00:23 bin/sh -> bash
    tho...@boole:/tmp/d $ ar x 
../tmp.cgJjcD65ng/target/var/cache/apt/archives/dash_0.5.5.1-3_hurd-i386.deb
    tho...@boole:/tmp/d $ gunzip < data.tar.gz | tar -xkf -

At this point no further progress is being made, and strace tells me:

    symlink("dash", "./bin/sh")             = -1 EEXIST (File exists)
    symlink("dash", "./bin/sh")             = -1 EEXIST (File exists)
    symlink("dash", "./bin/sh")             = -1 EEXIST (File exists)
    symlink("dash", "./bin/sh")             = -1 EEXIST (File exists)
    symlink("dash", "./bin/sh")             = -1 EEXIST (File exists)
    [...]

dash tries to replace the /bin/sh symlink (which tar -k should prevent),
but there's obviously something wrong.

This should not be specific to using hurd-i386 debs, but I didn't check.
(I found this problem while doing an installation of Debian GNU/Hurd
using Debian's crosshurd package.)


After installing tar_1.20-1_amd64.deb (Debian stable):

    tho...@boole:/tmp/d $ rm -rf ./*
    tho...@boole:/tmp/d $ ar x 
../tmp.cgJjcD65ng/target/var/cache/apt/archives/bash_4.1-2_hurd-i386.deb
    tho...@boole:/tmp/d $ gunzip < data.tar.gz | tar -xkf -
    tho...@boole:/tmp/d $ ar x 
../tmp.cgJjcD65ng/target/var/cache/apt/archives/dash_0.5.5.1-3_hurd-i386.deb
    tho...@boole:/tmp/d $ gunzip < data.tar.gz | tar -xkf -
    tar: ./bin/sh: Cannot create symlink to `dash': File exists
    tar: ./usr/share/man/man1/sh.1.gz: Cannot create symlink to `dash.1.gz': 
File exists
    tar: Error exit delayed from previous errors
    tho...@boole:/tmp/d $ echo $?
    2

tar doesn't hang.  (I'm not sure that this error message is appropriate
with tar -k, but that's a different issue.)


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (900, 'testing'), (800, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-4-xen-amd64 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

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

tar recommends no packages.

Versions of packages tar suggests:
ii  bzip2             1.0.5-4                high-quality block-sorting file co
ii  lzma              4.43-14                Compression method of 7z format in
pn  ncompress         <none>                 (no description available)
ii  xz-utils          4.999.9beta+20100307-1 XZ-format compression utilities

-- no debconf information


Regards,
 Thomas



--- End Message ---
--- Begin Message ---
Source: tar
Source-Version: 1.23-2.1

We believe that the bug you reported is fixed in the latest version of
tar, which is due to be installed in the Debian FTP archive:

tar_1.23-2.1.diff.gz
  to main/t/tar/tar_1.23-2.1.diff.gz
tar_1.23-2.1.dsc
  to main/t/tar/tar_1.23-2.1.dsc
tar_1.23-2.1_i386.deb
  to main/t/tar/tar_1.23-2.1_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Michael Banck <[email protected]> (supplier of updated tar package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

Format: 1.8
Date: Sun, 18 Jul 2010 17:14:48 +0200
Source: tar
Binary: tar
Architecture: source i386
Version: 1.23-2.1
Distribution: unstable
Urgency: low
Maintainer: Bdale Garbee <[email protected]>
Changed-By: Michael Banck <[email protected]>
Description: 
 tar        - GNU version of the tar archiving utility
Closes: 576876 577978
Changes: 
 tar (1.23-2.1) unstable; urgency=low
 .
   * Non-maintainer upload.
   * src/extract.c: Apply upstream git commit b60e56fd which fixes a dead loop
     on extracting existing symlinks with the -k option, closes: #577978,
     #576876.
Checksums-Sha1: 
 f1c94820a92f7ed443456397a23bd8610f170e13 985 tar_1.23-2.1.dsc
 26e0ec8d6af5f08503dc276e99ee5616444a3597 18493 tar_1.23-2.1.diff.gz
 a0b3e58316381b395750db959ad6c6ec41f89f56 911966 tar_1.23-2.1_i386.deb
Checksums-Sha256: 
 d28fc08fd44cb2edf337962aeb7e2bb362fb6cc3bf959a20cc03727f41b7ddb3 985 
tar_1.23-2.1.dsc
 4ff2fbeef3541ddcd242525cc917b9fbdb6008fb794a24429795371f683e0157 18493 
tar_1.23-2.1.diff.gz
 2480a9e3bedc1d81124451758f274352c0ce2db5f7abd4a57e46b46b9c54a602 911966 
tar_1.23-2.1_i386.deb
Files: 
 687990b02cad5fe94a1c20bef91aa1c9 985 utils required tar_1.23-2.1.dsc
 5c55b2c4eeabae92cd6d47ceb4973ebd 18493 utils required tar_1.23-2.1.diff.gz
 f5cf51556ec003b0392e38efd39adf81 911966 utils required tar_1.23-2.1_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iD8DBQFMQx3QmHaJYZ7RAb8RAziHAJ4x7P6q0lxMckZ3C1ULtHW0nZf2VwCfVHkl
AJaYhGF/QMikfugQA2MnXtA=
=FX8k
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to