Package: tar
Version: 1.16-2
Followup-For: Bug #415477

I ran the version of tar in question through strace and noted that in contrast 
to the earlier (working) version of tar all file descriptors get closed 
at startup. If I understand the /dev/fd system correctly (and I'm not 100% 
sure I do) when strace sees [close(63) = 0] the descriptor has been closed 
and any attempt to open "/dev/fd/63" will fail.

I downloaded the source and I found the function call closeopen()
[line 2257 of tar.c in main]. It seems commenting this function out fixes my 
problem.
 
I don't understand why everything except stdin, stdout and stderr get closed 
at startup so this isn't exactly a patch but hopefuly it should make it will
help.

Thanks.

Ian.


-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (900, 'testing'), (800, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.8-2-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

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

tar recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to