[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:35 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:           |
---------------------+----------------------------------
Changes (by Pavel Pisa <pisa@…>):

 * owner:   => Pavel Pisa <pisa@…>
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"9394aa5ed7ef6db28045e0103a6a174d9540d6c2/rtems"]:
 {{{
 #!CommitTicketReference repository="rtems"
 revision="9394aa5ed7ef6db28045e0103a6a174d9540d6c2"
 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:3>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list