forked from github/server
CID 32208 Time of check time of use
This commit is contained in:
parent
82994e5fd1
commit
2e7a1a3ded
1 changed files with 2 additions and 2 deletions
|
@ -1541,8 +1541,8 @@ static void prepare_report(struct report_context *ctx, faction *f)
|
|||
}
|
||||
|
||||
static void mkreportdir(const char *rpath) {
|
||||
if (_access(rpath, 0) < 0) {
|
||||
if (_mkdir(rpath) != 0) {
|
||||
if (_mkdir(rpath) != 0) {
|
||||
if (_access(rpath, 0) < 0) {
|
||||
log_error("could not create reports directory %s: %s", rpath, strerror(errno));
|
||||
abort();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue