Debian Bug report logs - #602209
tar: Fails using '-C' option extracting archive with empty directories

version graph

Package: tar; Maintainer for tar is Janos Lenart <ocsi@debian.org>; Source for tar is src:tar (PTS, buildd, popcon).

Reported by: Roger Leigh <rleigh@debian.org>

Date: Tue, 2 Nov 2010 14:48:01 UTC

Severity: grave

Tags: fixed-upstream, patch

Found in version tar/1.24-1

Fixed in versions tar/1.24-1.1, tar/1.25-1

Done: Bdale Garbee <bdale@gag.com>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Bdale Garbee <bdale@gag.com>:
Bug#602209; Package tar. (Tue, 02 Nov 2010 14:48:04 GMT) (full text, mbox, link).


Acknowledgement sent to Roger Leigh <rleigh@debian.org>:
New Bug report received and forwarded. Copy sent to Bdale Garbee <bdale@gag.com>. (Tue, 02 Nov 2010 14:48:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Roger Leigh <rleigh@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: tar: New version breaks lintian
Date: Tue, 02 Nov 2010 14:44:10 +0000
Package: tar
Version: 1.24-1
Severity: important

% lintian sbuild_0.60.2-1_amd64.changes
W: sbuild source: empty-debian-diff
/bin/tar: ./var/lib/sbuild: Cannot utime: No such file or directory
/bin/tar: ./var/lib: Cannot utime: No such file or directory
/bin/tar: ./var: Cannot utime: No such file or directory
/bin/tar: Exiting with failure status due to previous errors
internal error: dpkg-deb | tar failed with status 
internal error: 2
warning: collect info unpacked about package sbuild failed
warning: skipping check of binary package sbuild
/bin/tar: ./var/lib/wanna-build: Cannot utime: No such file or directory
/bin/tar: ./var/lib: Cannot utime: No such file or directory
/bin/tar: ./var: Cannot utime: No such file or directory
/bin/tar: Exiting with failure status due to previous errors
internal error: dpkg-deb | tar failed with status 
internal error: 2
warning: collect info unpacked about package wanna-build failed
warning: skipping check of binary package wanna-build
/bin/tar: ./usr/share/man/man8: Cannot utime: No such file or directory
/bin/tar: ./var/lib/buildd/upload: Cannot utime: No such file or directory
/bin/tar: ./var/lib/buildd/old-logs: Cannot utime: No such file or directory
/bin/tar: ./var/lib/buildd/.ssh: Cannot utime: No such file or directory
/bin/tar: ./var/lib/buildd/logs: Cannot utime: No such file or directory
/bin/tar: ./var/lib/buildd/mqueue: Cannot utime: No such file or directory
/bin/tar: ./var/lib/buildd/stats/graphs: Cannot utime: No such file or directory
/bin/tar: ./var/lib/buildd/stats: Cannot utime: No such file or directory
/bin/tar: ./var/lib/buildd/build: Cannot utime: No such file or directory
/bin/tar: ./var/lib/buildd/build-trees: Cannot utime: No such file or directory
/bin/tar: ./var/lib/buildd/upload-security: Cannot utime: No such file or directory
/bin/tar: Exiting with failure status due to previous errors
internal error: dpkg-deb | tar failed with status 
internal error: 2
warning: collect info unpacked about package buildd failed
warning: skipping check of binary package buildd


After downgrading to 1.23-3:
% lintian sbuild_0.60.2-1_amd64.changes
W: sbuild source: empty-debian-diff


The above package is dgettable from
http://people.debian.org/~rleigh/sbuild_0.60.2-1_amd64.changes


Regards,
Roger

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (550, 'unstable'), (400, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

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

tar recommends no packages.

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

-- no debconf information




Information forwarded to debian-bugs-dist@lists.debian.org, Bdale Garbee <bdale@gag.com>:
Bug#602209; Package tar. (Tue, 02 Nov 2010 14:51:04 GMT) (full text, mbox, link).


Acknowledgement sent to Roger Leigh <rleigh@codelibre.net>:
Extra info received and forwarded to list. Copy sent to Bdale Garbee <bdale@gag.com>. (Tue, 02 Nov 2010 14:51:04 GMT) (full text, mbox, link).


Message #10 received at 602209@bugs.debian.org (full text, mbox, reply):

From: Roger Leigh <rleigh@codelibre.net>
To: 602209@bugs.debian.org, bdale@gag.com
Cc: Roger Leigh <rleigh@debian.org>
Subject: Re: Bug#602209: tar: New version breaks lintian
Date: Tue, 2 Nov 2010 14:49:40 +0000
[Message part 1 (text/plain, inline)]
On Tue, Nov 02, 2010 at 02:48:04PM +0000, Debian Bug Tracking System wrote:

Upstream patch here:
http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00036.html


Regards,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
   `-    GPG Public Key: 0x25BFB848   Please GPG sign your mail.
[signature.asc (application/pgp-signature, inline)]

Added tag(s) fixed-upstream and patch. Request was from Roger Leigh <rleigh@codelibre.net> to control@bugs.debian.org. (Tue, 02 Nov 2010 14:57:02 GMT) (full text, mbox, link).


Severity set to 'grave' from 'important' Request was from Julien Cristau <jcristau@debian.org> to control@bugs.debian.org. (Tue, 02 Nov 2010 17:45:02 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Bdale Garbee <bdale@gag.com>:
Bug#602209; Package tar. (Thu, 04 Nov 2010 01:12:03 GMT) (full text, mbox, link).


Acknowledgement sent to Andres Mejia <mcitadel@gmail.com>:
Extra info received and forwarded to list. Copy sent to Bdale Garbee <bdale@gag.com>. (Thu, 04 Nov 2010 01:12:03 GMT) (full text, mbox, link).


Message #19 received at 602209@bugs.debian.org (full text, mbox, reply):

From: Andres Mejia <mcitadel@gmail.com>
To: 602209@bugs.debian.org, control@bugs.debian.org
Subject: tar: Fails using '-C' option extracting archive with empty directories
Date: Wed, 3 Nov 2010 21:03:02 -0400
retitle 602209 tar: Fails using '-C' option extracting archive with empty directories
thanks

Here's clarification of what the issue is. The new tar in unstable fails to
extract the empty directories inside an archive when using the '-C' option to
change directories. Here are the steps to reproduce with output.

Aside from affecting lintian when testing certain packages, this also affects
piuparts.

$ mkdir test
$ tar -czf test.tar.gz test/
$ tar -C /tmp -xzf test.tar.gz
tar: test: Cannot utime: No such file or directory
tar: test: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors

-- 
Regards,
Andres Mejia




Changed Bug title to 'tar: Fails using '-C' option extracting archive with empty directories' from 'tar: New version breaks lintian' Request was from Andres Mejia <mcitadel@gmail.com> to control@bugs.debian.org. (Thu, 04 Nov 2010 01:12:05 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Bdale Garbee <bdale@gag.com>:
Bug#602209; Package tar. (Thu, 04 Nov 2010 01:15:05 GMT) (full text, mbox, link).


Acknowledgement sent to Andres Mejia <mcitadel@gmail.com>:
Extra info received and forwarded to list. Copy sent to Bdale Garbee <bdale@gag.com>. (Thu, 04 Nov 2010 01:15:05 GMT) (full text, mbox, link).


Message #26 received at 602209@bugs.debian.org (full text, mbox, reply):

From: Andres Mejia <mcitadel@gmail.com>
To: 602209@bugs.debian.org
Subject: tar: [PATCH] Fails using '-C' option extracting archive with empty directories
Date: Wed, 3 Nov 2010 21:12:15 -0400
The other link provided earlier is down. Here's the fix in upstream's git repo.
http://git.savannah.gnu.org/cgit/tar.git/commit/?id=acb77ac5bd4bf9248070c9c512525eee8258aebd

-- 
Regards,
Andres Mejia




Information forwarded to debian-bugs-dist@lists.debian.org, Bdale Garbee <bdale@gag.com>:
Bug#602209; Package tar. (Thu, 04 Nov 2010 17:39:05 GMT) (full text, mbox, link).


Acknowledgement sent to Peter Palfrader <weasel@debian.org>:
Extra info received and forwarded to list. Copy sent to Bdale Garbee <bdale@gag.com>. (Thu, 04 Nov 2010 17:39:05 GMT) (full text, mbox, link).


Message #31 received at 602209@bugs.debian.org (full text, mbox, reply):

From: Peter Palfrader <weasel@debian.org>
To: 602413@bugs.debian.org
Cc: 602209@bugs.debian.org, control@bugs.debian.org
Subject: blame tar
Date: Thu, 4 Nov 2010 18:38:00 +0100
reassign 602413 tar
affects 602413 + locales-all
thanks


Downgrading tar "fixes" this, so it's probably a tar bug.  Maybe related
to #602209.

albeniz:/srv/chroot/sid# chroot . dpkg -i tar_1.23-3_alpha.deb 
dpkg: warning: downgrading tar from 1.24-1 to 1.23-3.
(Reading database ... 98695 files and directories currently installed.)
Preparing to replace tar 1.24-1 (using tar_1.23-3_alpha.deb) ...
Unpacking replacement tar ...
Setting up tar (1.23-3) ...
Processing triggers for man-db ...
albeniz:/srv/chroot/sid#

albeniz:/srv/chroot/sid# ls
bin  boot  dev  etc  home  ia  initrd  lib  media  mnt  opt  proc  root
sbin  selinux  srv  sys  tar_1.23-3_alpha.deb  tmp  usr  var
albeniz:/srv/chroot/sid# chroot . apt-get --reinstall install
locales-all
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 1 not
upgraded.
Need to get 0 B/3496 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 98694 files and directories currently installed.)
Preparing to replace locales-all 2.11.2-7 (using
.../locales-all_2.11.2-7_alpha.deb) ...
Unpacking replacement locales-all ...
Setting up locales-all (2.11.2-7) ...
albeniz:/srv/chroot/sid# ls
bin  boot  dev  etc  home  ia  initrd  lib  media  mnt  opt  proc  root
sbin  selinux  srv  sys  tar_1.23-3_alpha.deb  tmp  usr  var


-- 
                           |  .''`.  ** Debian GNU/Linux **
      Peter Palfrader      | : :' :      The  universal
 http://www.palfrader.org/ | `. `'      Operating System
                           |   `-    http://www.debian.org/




Reply sent to Simon McVittie <smcv@debian.org>:
You have taken responsibility. (Sun, 07 Nov 2010 13:36:05 GMT) (full text, mbox, link).


Notification sent to Roger Leigh <rleigh@debian.org>:
Bug acknowledged by developer. (Sun, 07 Nov 2010 13:36:05 GMT) (full text, mbox, link).


Message #36 received at 602209-close@bugs.debian.org (full text, mbox, reply):

From: Simon McVittie <smcv@debian.org>
To: 602209-close@bugs.debian.org
Subject: Bug#602209: fixed in tar 1.24-1.1
Date: Sun, 07 Nov 2010 13:32:09 +0000
Source: tar
Source-Version: 1.24-1.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.24-1.1.diff.gz
  to main/t/tar/tar_1.24-1.1.diff.gz
tar_1.24-1.1.dsc
  to main/t/tar/tar_1.24-1.1.dsc
tar_1.24-1.1_amd64.deb
  to main/t/tar/tar_1.24-1.1_amd64.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 602209@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Simon McVittie <smcv@debian.org> (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 ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Sat, 06 Nov 2010 19:07:16 +0000
Source: tar
Binary: tar
Architecture: source amd64
Version: 1.24-1.1
Distribution: unstable
Urgency: low
Maintainer: Bdale Garbee <bdale@gag.com>
Changed-By: Simon McVittie <smcv@debian.org>
Description: 
 tar        - GNU version of the tar archiving utility
Closes: 602184 602209 602413 602639
Changes: 
 tar (1.24-1.1) unstable; urgency=low
 .
   * Non-maintainer upload, acknowledged by cworth on IRC
   * Apply upstream commit 39136756 to fix extraction of device nodes
     (Closes: #602184)
   * Apply upstream commit acb77ac5 to fix extraction of directories
     while using the -C option (Closes: #602209, #602413)
   * Add Vcs-Git, Vcs-Browser fields to debian/control (Closes: #602639)
Checksums-Sha1: 
 899ed021e3f5d13bf5e8c0e5aed139c0d0c3a9cd 1669 tar_1.24-1.1.dsc
 2ab6c98c6c7836fdee7cd38d6d97626ee6979fe1 18936 tar_1.24-1.1.diff.gz
 ab8c441493a6bfdb140ecbaa214d551b738d7da3 970844 tar_1.24-1.1_amd64.deb
Checksums-Sha256: 
 5716d16450c8cf387f4c93dafd5e9fe5e918cf1b7410414d31bfde619f4334a4 1669 tar_1.24-1.1.dsc
 8b96decfee73ea56f229ec3e2f653700a402c5a36d1f1eb60cbba260f5d5cc5f 18936 tar_1.24-1.1.diff.gz
 ccc07277a7647c751106704c59bb4852793743616c9707b14d581c902c2e821a 970844 tar_1.24-1.1_amd64.deb
Files: 
 91a2b62075ea4fc93c8856c613a0ef63 1669 utils required tar_1.24-1.1.dsc
 872c4f370e65479bb24cf80e25fa7e20 18936 utils required tar_1.24-1.1.diff.gz
 e803cb20e9e3e72bbc041969aaa2697e 970844 utils required tar_1.24-1.1_amd64.deb

-----BEGIN PGP SIGNATURE-----

iQIVAwUBTNaoBU3o/ypjx8yQAQgPAw//dS13sjgQ4gezBg2vFcT8nkfaoGfC2tU8
8DmheBMPRs+GQuTHob5S5fxu9tbZIxIynT1kvU4TsbpF2fECwiCkQOpSgVLFB5tK
e9YS6WPoGrwuW9QYgQIu755Q3HmDL3imG+nXYTrTNt3EI1xd6zFMOmuU46KysljL
eZLkCTlB2vBwcWia2T4KkRES37QK7TJXqWwtMhkxpboNLT99qcNteM851cKAX+5l
Lz95kZsS03El1V11f9srhY1mqgFOwv6Ye2OmB3+6VFO9qW4oo03Im/re1ByNeEwu
XRWBgWS6IEpwrPzw3D5cxbySHmx7GAf2SK1pMK4VkSHKrhcSq1xNQuPixBaD+GOf
5elY/kxwymdSAnWPi2XAu0VoPahe8RLE7zeKKw4WKy3pXCJTZIQNPoSatKEmyL+p
K+GYACQ7hJwboQmh3qNKxegY4jds5TwX0wlCNObZLqN5sEFaiPn3MSsmGNUBn8cV
D/zjFa5J6kc8VUZEc+cEptw1v7q715rAsWDMXG0vB4KV4dyVP9dvwwQQkoRv66Ae
aj4O7JA3jKE0YHh2vubs1HICZISMZA/41Wf3OZYb+6XmaAMjGvZpECBmGqdNH9HF
cSxOjKmumqXYdwiHZiZJIUXQRDUEHAoiXeK5SHHtFCGH0a0Aqwmu0o13eC88FMP+
9pudOXzpITM=
=5a2C
-----END PGP SIGNATURE-----





Reply sent to Bdale Garbee <bdale@gag.com>:
You have taken responsibility. (Thu, 11 Nov 2010 04:21:13 GMT) (full text, mbox, link).


Notification sent to Roger Leigh <rleigh@debian.org>:
Bug acknowledged by developer. (Thu, 11 Nov 2010 04:21:13 GMT) (full text, mbox, link).


Message #41 received at 602209-close@bugs.debian.org (full text, mbox, reply):

From: Bdale Garbee <bdale@gag.com>
To: 602209-close@bugs.debian.org
Subject: Bug#602209: fixed in tar 1.25-1
Date: Thu, 11 Nov 2010 04:17:09 +0000
Source: tar
Source-Version: 1.25-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.25-1.diff.gz
  to main/t/tar/tar_1.25-1.diff.gz
tar_1.25-1.dsc
  to main/t/tar/tar_1.25-1.dsc
tar_1.25-1_i386.deb
  to main/t/tar/tar_1.25-1_i386.deb
tar_1.25.orig.tar.gz
  to main/t/tar/tar_1.25.orig.tar.gz



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 602209@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Bdale Garbee <bdale@gag.com> (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 ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Wed, 10 Nov 2010 15:45:09 -0700
Source: tar
Binary: tar
Architecture: source i386
Version: 1.25-1
Distribution: unstable
Urgency: low
Maintainer: Bdale Garbee <bdale@gag.com>
Changed-By: Bdale Garbee <bdale@gag.com>
Description: 
 tar        - GNU version of the tar archiving utility
Closes: 522858 575298 602184 602209 602413 602639 602709
Changes: 
 tar (1.25-1) unstable; urgency=low
 .
   * new upstream version, closes: #602184, #602209, #602413, #575298
   * Add Vcs-Git, Vcs-Browser fields to debian/control using patch from
     Simon McVittie's 1.24-1.1 NMU, closes: #602639, #602709
   * stop patching src/list.c since it now does more harm than good,
     and add a Breaks against old dpkg versions, closes: #522858
Checksums-Sha1: 
 fa745f32015e85ee08df46bc7c4e7bf82c335f9d 1696 tar_1.25-1.dsc
 e357807c23f1135d265f105901249929a7d7a0f4 2982703 tar_1.25.orig.tar.gz
 6a8904bb83d766649d4804d3c45a43566c686642 17422 tar_1.25-1.diff.gz
 021c42658002f3ee13983cdfdadc02503c5f4972 955602 tar_1.25-1_i386.deb
Checksums-Sha256: 
 573c8ac1c29a89bf7661606684fd7de3703ef57c63ff62081eb87724c1c6f2c8 1696 tar_1.25-1.dsc
 563316de126899922806900b8968bd1fed9e0cf20c556f358445aa7ba678e03e 2982703 tar_1.25.orig.tar.gz
 e1610e1723d6cfd9715f6ac3547180ead045a57d43c2c6c1774a2457442acffd 17422 tar_1.25-1.diff.gz
 9b81917886d7fa33f40ee2f456f7a705179649525e7eba176946bf969d720380 955602 tar_1.25-1_i386.deb
Files: 
 f073ac287a850316f03884b6f5a27d13 1696 utils required tar_1.25-1.dsc
 cb11a42b3eabbbfb8e29e1efdfe41603 2982703 utils required tar_1.25.orig.tar.gz
 73d44ad4109a7c1572e3930523119ac2 17422 utils required tar_1.25-1.diff.gz
 d000a878a8cf6a53b04b4ca77ef156c8 955602 utils required tar_1.25-1_i386.deb

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

iQIVAwUBTNtq/DqTYZbAldlBAQoGhxAAvn4lWEYcNG0/P4NBHbNw2q+tB9kBXIm/
hjlqtUUTjhHfwNRbAyTJbjEAzgSG7aY3sOqXZ3ZeVOYtUHZje6rn0EUMwl6Pr1av
d0MfbBENs5bBgB+da2KChqqaduzEYA9icUmeAbLp5Ra+DcIMNzQpIPMRWoub0QXh
Y1j+rmnU5F40762AK82EQeKAZSHMMIs9WrMGUleLC+GZoI/AXgt1IxMKoeBCt/He
E36ILjlnN0HN40ndctl36mxx/+PY5/3NUEbpD7etyHgfbVWgSLVtxqSYmfH43DIT
jKkxNe1FC76UID6dgkodeJ/B/B8tZ8FAzdgYwtiJNOOj8MrZnwxUkIr8QIR0oSm8
tRWLWz2Vby/o/uGUtCfA4YznRCLP1tqaA9JZZRallbeCTrYpG/v/qHZH17uk066r
fbqLigq0hMi+raKDMQfHRznd3Hyj0qFU6WZ+7HqjMsRWBOe7/iGhSdDwJ/3l4/vk
y1pWGnO39EUWqZT4pn+MGGkbr4zezdMHKMtlJOUpShbVRVI4vM37C1gpDHBhpS1b
QDUmFZ4u76gq+BNBOJrjAQrf6FpFzxC0w5AmKy7Ou6X7DwUpvnGI2w/iFT7aD30O
chBHNkM090BLEfkJTy3ne8zG+fp4z4qniABYywgg04oOW8J9jbPNjs5JLIE7jQHi
Ee1CdyoeB8c=
=kLqb
-----END PGP SIGNATURE-----





Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Thu, 09 Dec 2010 07:30:39 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jan 14 01:25:47 2024; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.