]> git.cworth.org Git - tar/commitdiff
upstream: fix bug with -C and extracting directories
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 26 Oct 2010 03:20:19 +0000 (20:20 -0700)
committerCarl Worth <cworth@cworth.org>
Sat, 6 Nov 2010 19:51:26 +0000 (12:51 -0700)
Cherry-picked from upstream commit
acb77ac5bd4bf9248070c9c512525eee8258aebd:

Problem reported by Denis Excoffier in
<http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00034.html>.

* src/extract.c (extract_dir): Use mkdirat, not mkdir.
* tests/extrac16.at: New file, to test for this bug.
* tests/Makefile.am (TESTSUITE_AT): Add it.
* tests/testsuite.at: Include it.

This file is a placeholder. It will be replaced with the actual ChangeLog
by make dist.  Run make ChangeLog if you wish to create it earlier.


No differences found