[PATCH v2] untar: do not exit with error when created directory already exists (fixes #2413).

Pavel Pisa pisa at cmp.felk.cvut.cz
Thu Sep 10 07:56:06 UTC 2015


Hello Gedare and others,

On Thursday 10 of September 2015 05:00:27 Gedare Bloom wrote:
> Looks good. This should go on 4.11 and master? Someone can commit.

please commit to both.

> On Wed, Sep 9, 2015 at 6:09 PM, Pavel Pisa <pisa at cmp.felk.cvut.cz> wrote:
> > The problem exists for both RTEMS untar implementations and their
> > variants: Untar_FromMemory(), Untar_FromFile() and rtems_tarfs_load().

It is interresting that problem has not been catch by tests.
But if tar is only for some nonexistent subdirectory, i.e.

  /data

or rtems_tarfs_load() specifies subdiretory then problem
does not pop-up.

But if the tar is complete filesystem and contains

  ./
  ./data
  ./bin

or 

  /
  /data
  /bin

then all these functions fails at start of the archive.

Best wishes,

             Pavel


More information about the devel mailing list