diff options
-rw-r--r-- | xdg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xdg.c b/xdg.c index b206427..e4b252d 100644 --- a/xdg.c +++ b/xdg.c @@ -118,7 +118,7 @@ void dataMkdir(const char *path) { const char *dirs = NULL; path = dataPath(&dirs, path); int error = mkdir(path, S_IRWXU); - if (error && errno != EEXIST) warn("%s", path); + if (error && errno != EEXIST) err(EX_CANTCREAT, "%s", path); } FILE *dataOpen(const char *path, const char *mode) { |