aboutsummaryrefslogtreecommitdiffstats
path: root/src/blogc/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/blogc/main.c')
-rw-r--r--src/blogc/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/blogc/main.c b/src/blogc/main.c
index d72091e..bfa3ea9 100644
--- a/src/blogc/main.c
+++ b/src/blogc/main.c
@@ -101,7 +101,7 @@ blogc_mkdir_recursive(const char *filename)
#else
(-1 == mkdir(fname, 0777)) &&
#endif
- (errno != EEXIST))
+ (errno != EEXIST && errno != ENOENT))
{
fprintf(stderr, "blogc: error: failed to create output "
"directory (%s): %s\n", fname, strerror(errno));