]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Need to check for both...
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sat, 22 Oct 2022 17:23:50 +0000 (13:23 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sat, 22 Oct 2022 17:23:50 +0000 (13:23 -0400)
src/lib/util/file.c

index de86c55d6af31399f8fc456cd9090c34be25f4f9..bfbad357909bc527b634db021b97186c22579914 100644 (file)
@@ -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;
        }