mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
Utilities/tar: Ignore directory entry if it already exists
This commit is contained in:
parent
1ae76676a5
commit
c94574d313
Notes:
sideshowbarker
2024-07-18 01:13:17 +09:00
Author: https://github.com/timschumi Commit: https://github.com/SerenityOS/serenity/commit/c94574d3131 Pull-request: https://github.com/SerenityOS/serenity/pull/10891
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ int main(int argc, char** argv)
|
|||
case Archive::TarFileType::Directory: {
|
||||
Core::File::ensure_parent_directories(absolute_path);
|
||||
|
||||
if (mkdir(absolute_path.characters(), header.mode())) {
|
||||
if (mkdir(absolute_path.characters(), header.mode()) && errno != EEXIST) {
|
||||
perror("mkdir");
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue