Browse Source

Ignore mkdir() error when directory already exists

tags/v0.5.0
Andrew Belt 7 years ago
parent
commit
33e8973bf1
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/plugin.cpp

+ 1
- 1
src/plugin.cpp View File

@@ -179,7 +179,7 @@ static int extractZipHandle(zip_t *za, const char *dir) {

if (zs.name[nameLen - 1] == '/') {
err = mkdir(path, 0755);
if (err)
if (err && errno != EEXIST)
return err;
}
else {


Loading…
Cancel
Save