tar: fix race condition
commit79d1ac38c19faad64f0e993180bf1ad27f217072
authorJames Abbatiello <abbeyj@gmail.com>
Sat, 11 Jun 2022 01:25:13 +0000 (10 18:25 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 11 Jun 2022 01:26:37 +0000 (10 18:26 -0700)
tree147acd8eba9f040a2c4ecd818dde2e4d53cb3094
parent79a442d7b0e92622794bfa41dee18a28e450a0dc
tar: fix race condition

Problem reported in:
https://lists.gnu.org/r/bug-tar/2022-03/msg00000.html
* src/extract.c (make_directories): Retry the file creation as
long as the directory exists, regardless of whether tar itself
created the directory.
Copyright-paperwork-exempt: Yes
src/extract.c