helpGNU tar - Support: sr #106740, --files-from writes files twice to...

 
 

sr #106740: --files-from writes files twice to the archive

Submitted by:  Alain Williams <addw>
Submitted on:  Fri 24 Apr 2009 10:02:08 AM UTC  
 
Category:  None Priority:  5 - Normal
Severity:  5 - Blocker Status:  Wont Do
Privacy:  Public Assigned to:  None
Open/Closed:  Closed Operating System:  GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 25 Feb 2014 10:42:24 PM UTC, comment #2:

Regarding backslash interpretation: to inhibit it, use zero-delimited lists, as in:

find . -print0 | tar -cf ../Test.tar --null --files-from -

Sergey Poznyakoff <gray>
Project Administrator
Tue 28 Apr 2009 10:24:43 PM UTC, comment #1:

OK: I now realise that I should have put the --no-recursion option, however there is STILL the problem of the interpretation of '\123' as 'S'.

Alain Williams <addw>
Fri 24 Apr 2009 10:02:08 AM UTC, original submission:

Try something like this in a small directory:
find | tar cf ../Test.tar --files-from -
tar tvf ../Test.tar
You will see that the files appear twice in the archive.

There is also a problem if one of the file names contains a backslash, eg: Bar\123Baz it will fail when it attempts to write the file to the archive the second time with the message:
tar: ./BarSBaz: Cannot stat: No such file or directory
It seems to be interpreting \123 as its octal value.

This is severe since it doubles the amount of tape used and generates error messages for some file names.

Alain Williams <addw>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by gray (Posted a comment)
  • -email is unavailable- added by addw (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-02-25 gray StatusNone => Wont Do
        Open/ClosedOpen => Closed

    Back to the top


    Powered by Savane 3.3