diff options
author | Tim Schumacher <timschumi@gmx.de> | 2021-11-13 01:28:17 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-11-13 11:42:08 +0100 |
commit | c94574d31311330857dabaaf70d650a00e839c49 (patch) | |
tree | fcb6bcb5aeed3a26b63b3da88c2bd4db13429021 /Userland/Utilities | |
parent | 1ae76676a56d01fab2ffecbb0c5a5904e457ae84 (diff) | |
download | serenity-c94574d31311330857dabaaf70d650a00e839c49.zip |
Utilities/tar: Ignore directory entry if it already exists
Diffstat (limited to 'Userland/Utilities')
-rw-r--r-- | Userland/Utilities/tar.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Utilities/tar.cpp b/Userland/Utilities/tar.cpp index 8f077129f8..ce36b8db94 100644 --- a/Userland/Utilities/tar.cpp +++ b/Userland/Utilities/tar.cpp @@ -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; } |