From: Arran Cudbard-Bell Date: Sat, 22 Oct 2022 17:23:50 +0000 (-0400) Subject: Need to check for both... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dde05d498d45dfcc0bb80823a1950ae01e191efd;p=thirdparty%2Ffreeradius-server.git Need to check for both... --- diff --git a/src/lib/util/file.c b/src/lib/util/file.c index de86c55d6af..bfbad357909 100644 --- a/src/lib/util/file.c +++ b/src/lib/util/file.c @@ -82,7 +82,7 @@ static ssize_t _fr_mkdir(int *fd_out, char *path, mode_t mode, fr_mkdir_func_t f * process created this directory in between our check * and our creation. */ - if (errno != EEXIST) { + if ((errno != ENOENT) && (errno != EEXIST)) { fr_strerror_printf("Failed creating directory path: %s", fr_syserror(errno)); goto mkdir_error; }