diff options
| -rw-r--r-- | main.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -889,10 +889,11 @@ static int createdir(const struct http_payload *const p, } else if (mkdir(d.str, 0700)) { - fprintf(stderr, "%s: mkdir(2): %s\n", __func__, strerror(errno)); - if (errno != EEXIST) + { + fprintf(stderr, "%s: mkdir(2): %s\n", __func__, strerror(errno)); goto end; + } else { static const char body[] = "<html>Directory already exists</html>"; |
