conf: create ntsdumpdir directory

Create the directory specified by the ntsdumpdir directive if it doesn't
exist, similarly to logdir and dumpdir.
This commit is contained in:
Miroslav Lichvar 2020-07-08 17:04:47 +02:00
parent 3bdcce6903
commit dc08cbfe59

2
conf.c
View file

@ -1769,6 +1769,8 @@ CNF_CreateDirs(uid_t uid, gid_t gid)
UTI_CreateDirAndParents(logdir, 0750, uid, gid);
if (dumpdir)
UTI_CreateDirAndParents(dumpdir, 0750, uid, gid);
if (nts_dump_dir)
UTI_CreateDirAndParents(nts_dump_dir, 0750, uid, gid);
}
/* ================================================== */