bug-gnu-utils
[Top][All Lists]
Advanced

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

Problem with GNU tar version 1.13.25


From: Wayne Pollock
Subject: Problem with GNU tar version 1.13.25
Date: Mon, 31 Mar 2003 23:42:19 -0500

-----BEGIN PGP SIGNED MESSAGE-----

I think I have found a bug in the current version of tar (1.13.25).

Background:

RedHat Linux v 7.2:  uname -a output
  Linux YborStudent 2.4.18-3 #1 Thu Apr 18 07:37:53 EDT 2002 i686
unknown

I was writing a simple find and tar script to backup /etc files,
and ran across a problem with files with meta-characters in their
names (such as blank).  I remember that find and xargs could
be used to have null separated filename.  This didn't work as
expected.  A little more reading on tar convinced me that xargs
wasn't needed at all.

Problem description:

Either with or without xargs, tar was archiving many files more than
once!  In some cases it seems to be once only, sometimes twice,
and sometimes more than that.  This only appears to be a problem
with "--null -T -" options.

I know the problem isn't with find (or xargs) since I checked
that as well.  Here is some testing output:

address@hidden root]# cd /etc
address@hidden etc]# find . -print0 | tar -cz --null -T - -f
/tmp/foo.tgz
address@hidden etc]# tar -tzvf /tmp/foo.tgz |grep sendmail.mc
- - -rw-r--r-- root/root      2716 2002-04-08 06:55:39
./mail/sendmail.mc
- - -rw-r--r-- root/root      2716 2002-04-08 06:55:39
./mail/sendmail.mc
- - -rw-r--r-- root/root      2716 2002-04-08 06:55:39
./mail/sendmail.mc
address@hidden etc]# ls -l mail/sendmail.mc
- - -rw-r--r--    1 root     root         2716 Apr  8  2002
mail/sendmail.mc
address@hidden etc]# find . -print0 |tr \\000 \\012 |grep
sendmail.mc
./mail/sendmail.mc
address@hidden etc]# tar --version
tar (GNU tar) 1.13.25
...
address@hidden etc]# find . |wc -l
   2464
address@hidden etc]# tar -ztvf /tmp/foo.tgz |wc -l
   9397
address@hidden etc]#

The archive file created by the above (foo.tgz) is not
attached but can be sent upon request.

Please let me know what you find out (or if you don't plan to
follow this up.)

Respectfully,

Wayne Pollock <address@hidden>
Hillsborough Community College, Tampa Florida USA.

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQCVAwUBPokYpexqnBf+HxUtAQE8VAQAhRgeI7cBhrDCPiA3OXZAlt7U7euT5g9j
JE0rF8D4g5k7My3Qzsko7tzajW3Kti1xFmmGDjWcUvEX6ZuCJL7NSeXSIFwyNu8S
2uKxNl3/V46msSyMF7Usz2OLI0mZTs3w6KSsspRV6Seu7eUDODtnY5J3QW6sv+cL
8IUP0MIQk6k=
=nLAq
-----END PGP SIGNATURE-----

Attachment: Pollock.vcf
Description: Card for Wayne Pollock


reply via email to

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