mirror of
git://git.gnupg.org/gnupg.git
synced 2025-05-24 16:43:28 +02:00
gpgtar: Fix parent directory creation bug
* tools/gpgtar-extract.c (extract_directory): Ignore EEXIST on parent directory creation.
This commit is contained in:
parent
c66dacb98a
commit
fbc1813779
@ -198,6 +198,9 @@ extract_directory (const char *dirname, tar_header_t hdr, strlist_t exthdr)
|
|||||||
{
|
{
|
||||||
*p = 0;
|
*p = 0;
|
||||||
rc = gnupg_mkdir (fname, "-rwx------");
|
rc = gnupg_mkdir (fname, "-rwx------");
|
||||||
|
if (rc && (gpg_err_code (gpg_error_from_syserror ())
|
||||||
|
== GPG_ERR_EEXIST))
|
||||||
|
rc = 0;
|
||||||
*p = '/';
|
*p = '/';
|
||||||
if (rc)
|
if (rc)
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user