diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2018-02-24 20:07:08 +0100 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2018-02-24 20:07:08 +0100 |
commit | 0bc74a99b362a7ef58655bf3d4b29d5699c38c90 (patch) | |
tree | 690d53864be27eab6c9f55bfa8b98e81fca5104c /src/blogc-make/exec-native.c | |
parent | 1232f3482b272fbe8986c9677b529ec7b6cb0183 (diff) | |
download | blogc-0bc74a99b362a7ef58655bf3d4b29d5699c38c90.tar.gz blogc-0bc74a99b362a7ef58655bf3d4b29d5699c38c90.tar.bz2 blogc-0bc74a99b362a7ef58655bf3d4b29d5699c38c90.zip |
blogc: make: mkdir may raise ENOENT
Diffstat (limited to 'src/blogc-make/exec-native.c')
-rw-r--r-- | src/blogc-make/exec-native.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/blogc-make/exec-native.c b/src/blogc-make/exec-native.c index ae5517d..4a31c88 100644 --- a/src/blogc-make/exec-native.c +++ b/src/blogc-make/exec-native.c @@ -40,7 +40,7 @@ bm_exec_native_cp(bm_filectx_t *source, bm_filectx_t *dest, bool verbose) *tmp = '\0'; if ((strlen(fname) > 0) && (-1 == mkdir(fname, 0777)) && - (errno != EEXIST)) + (errno != EEXIST && errno != ENOENT)) { fprintf(stderr, "blogc-make: error: failed to create output " "directory (%s): %s\n", fname, strerror(errno)); |