Package: tar
Version: 1.22-2
Severity: normal

Hi,

first let me say that this bug is pretty anoying as it makes it
impossible to bootstrap a recent Debian or Ubuntu here. Please make
sure this gets fixed for Squeeze and Ubuntu Lucid.

Now, looking at the source and strace I see that tar first tries
utimensat(AT_FDCWD, file, timespec, 0) and recieves ENOSYS.

Then it falls through to calling futimens (fd, timespec) recieving
EBADFD and failing.


The patch in the bugreport adds

+      if (0 <= fd)

That limits the fallback to cases that do have an FD, which is not the
case here. For otheres, which here is the case, it then falls back to
utimes which has less resolution for the timestamp.

Why not open the file, call futimens(new_fd, timespec) and close it
again?

MfG
        Goswin

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

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

Versions of packages tar depends on:
ii  libc6                         2.10.2-5   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
pn  ncompress                     <none>     (no description available)

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