[RTEMS Project] #2415: Duplicate code in Untar_FromMemory(), Untar_FromFile() and rtems_tarfs_load()

RTEMS trac trac at rtems.org
Sat Jun 4 00:11:32 UTC 2016


#2415: Duplicate code in Untar_FromMemory(), Untar_FromFile() and
rtems_tarfs_load()
-----------------------------+---------------------
 Reporter:  sebastian.huber  |       Owner:
     Type:  defect           |      Status:  new
 Priority:  normal           |   Milestone:  4.11.1
Component:  General          |     Version:  4.10
 Severity:  normal           |  Resolution:
 Keywords:                   |
-----------------------------+---------------------

Comment (by Chris Johns <chrisj@…>):

 In [changeset:"d84e346b26017f021c1a7d5c8ad078c7264240ab/rtems"]:
 {{{
 #!CommitTicketReference repository="rtems"
 revision="d84e346b26017f021c1a7d5c8ad078c7264240ab"
 libmisc/untar: Support directory create and overwrites. Share the common
 code.

 Support creating directories for files with a path depth greater than 1.
 Some
 tar files can have files with a path depth greater than 1 and no directory
 entry in the tar file to create a directory.

 Support overwriting existing files and directories failing in a similar
 way to tar on common hosts. If a file is replaced with a file delete the
 file and create a new file. If a directory replaces a file remove the file
 and create the directory. If a file replaces a directory remove the
 directory,
 and if the directory is not empty and cannot be removed report an error.
 If a
 directory alreday exists do nothing leaving the contents untouched.

 The untar code now shares the common header parsing and initial processing
 with the actual writes still separate. No changes to the IMFS have been
 made.

 Updates #2415.
 Closes #2207.
 }}}

--
Ticket URL: <http://devel.rtems.org/ticket/2415#comment:4>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list