mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +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
1ab21c82c3
commit
d5fe8ba721
1 changed files with 2 additions and 0 deletions
|
@ -198,6 +198,8 @@ extract_directory (const char *dirname, tar_header_t hdr, strlist_t exthdr)
|
|||
{
|
||||
*p = 0;
|
||||
rc = gnupg_mkdir (fname, "-rwx------");
|
||||
if (gpg_err_code (rc) == GPG_ERR_EEXIST)
|
||||
rc = 0;
|
||||
*p = '/';
|
||||
if (rc)
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue