summaryrefslogtreecommitdiff
path: root/Userland/Utilities
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Utilities')
-rw-r--r--Userland/Utilities/tar.cpp2
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;
}