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: NonePriority: 5 - Normal
Severity: 5 - BlockerStatus: Wont Do
Privacy: PublicAssigned to: None
Open/Closed: ClosedOperating System: GNU/Linux

Add a New Comment (Rich MarkupRich 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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

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

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 25 Feb 2014 10:42:24 PM UTCgrayStatusNone=>Wont Do
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup