bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-tar] Strange Extra Line in 1.14 and 1.15.1's -tvf Output.


From: Ralph Corderoy
Subject: [Bug-tar] Strange Extra Line in 1.14 and 1.15.1's -tvf Output.
Date: Sun, 21 Aug 2005 15:14:22 +0100

Hi,

An extra line of output, including some NUL bytes, appears in the output
of `tar -tvf'.

    $ find d -ls
    1291939    4 drwxr-xr-x   2 ralph    ralph        4096 Aug 21 14:52 d
    1291938    0 lrwxrwxrwx   1 ralph    ralph           3 Aug 21 14:51 d/bar 
-> foo
    $ for tar in /bin/tar ~/src/tar/tar-1.15.1/src/tar; do
    >     $tar --version
    >     rm -f d.tar db
    >     $tar -cvf d.tar -g db d
    >     $tar -tvf d.tar -g /dev/null | od -c
    > done
    tar (GNU tar) 1.14
    Copyright (C) 2004 Free Software Foundation, Inc.
    This program comes with NO WARRANTY, to the extent permitted by law.
    You may redistribute it under the terms of the GNU General Public License;
    see the file named COPYING for details.
    Written by John Gilmore and Jay Fenlason.
    d/
    d/bar
    0000000   d   r   w   x   r   -   x   r   -   x       r   a   l   p   h
    0000020   /   r   a   l   p   h                               6       2
    0000040   0   0   5   -   0   8   -   2   1       1   4   :   5   2   :
    0000060   4   7       d   /  \n   Y   b   a   r  \0  \0  \n   l   r   w
    0000100   x   r   w   x   r   w   x       r   a   l   p   h   /   r   a
    0000120   l   p   h                               0       2   0   0   5
    0000140   -   0   8   -   2   1       1   4   :   5   1   :   0   0
    0000160   d   /   b   a   r       -   >       f   o   o  \n
    0000175
    tar (GNU tar) 1.15.1
    d/
    d/bar
    0000000   d   r   w   x   r   -   x   r   -   x       r   a   l   p   h
    0000020   /   r   a   l   p   h                               6       2
    0000040   0   0   5   -   0   8   -   2   1       1   4   :   5   2   :
    0000060   4   7       d   /  \n   Y   b   a   r  \0  \0  \n   l   r   w
    0000100   x   r   w   x   r   w   x       r   a   l   p   h   /   r   a
    0000120   l   p   h                               0       2   0   0   5
    0000140   -   0   8   -   2   1       1   4   :   5   1   :   0   0
    0000160   d   /   b   a   r       -   >       f   o   o  \n
    0000175
    $

I don't know what other effects may be going on, but it obviously breaks
parsing of -tv's output.  Perhaps this should be another `make check'
test?

Cheers,


Ralph.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]