[RTEMS Project] #2413: Untar_FromMemory breaks on create directory if they exists, even on root one.

RTEMS trac trac at rtems.org
Mon Nov 23 15:40:47 UTC 2015


#2413: Untar_FromMemory breaks on create directory if they exists, even on root
one.
---------------------+----------------------------------
 Reporter:  ppisa    |       Owner:  Pavel Pisa <pisa@…>
     Type:  defect   |      Status:  closed
 Priority:  normal   |   Milestone:  4.11
Component:  General  |     Version:  4.11
 Severity:  normal   |  Resolution:  fixed
 Keywords:           |
---------------------+----------------------------------

Comment (by Pavel Pisa <pisa@…>):

 In [changeset:"a6d176f25e28c153b304ee6c8ca6690b04722448/rtems"]:
 {{{
 #!CommitTicketReference repository="rtems"
 revision="a6d176f25e28c153b304ee6c8ca6690b04722448"
 untar: do not exit with error when created directory already exists.

 The problem exists for both RTEMS untar implementations and their
 variants: Untar_FromMemory(), Untar_FromFile() and rtems_tarfs_load().

 If filesystem object already exists at extracted directory path
 then if it is directory, creation is ignored. Attempt
 to delete/unlink object and make directory is tried for other cases.

 This simple approach problem reported in ticket fixes #2413.
 Behavior follows GNU tar and BSD tar practice for directories
 but much more work is required to achieve full semantics
 of the full featured tar implementation still.
 }}}

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


More information about the bugs mailing list