From: Joel Rosdahl Date: Mon, 19 Dec 2011 19:58:00 +0000 (+0100) Subject: Make failure to create cache directories fatal X-Git-Tag: v3.1.7~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=15275c83dcb66f89de70a80fd1e437975f8ec7be;p=thirdparty%2Fccache.git Make failure to create cache directories fatal --- diff --git a/ccache.c b/ccache.c index 7e0db22f5..9f6d003c4 100644 --- a/ccache.c +++ b/ccache.c @@ -267,8 +267,7 @@ get_path_in_cache(const char *name, const char *suffix) free(path); path = p; if (create_dir(path) != 0) { - cc_log("Failed to create %s: %s", path, strerror(errno)); - failed(); + fatal("Failed to create %s: %s", path, strerror(errno)); } } result = format("%s/%s%s", path, name + nlevels, suffix);