mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
Fix another check_private_dir instance in master
This commit is contained in:
parent
8839b86085
commit
22efe20309
@ -2758,7 +2758,7 @@ rep_hist_conn_stats_write(time_t now)
|
|||||||
|
|
||||||
/* Try to write to disk. */
|
/* Try to write to disk. */
|
||||||
statsdir = get_datadir_fname("stats");
|
statsdir = get_datadir_fname("stats");
|
||||||
if (check_private_dir(statsdir, CPD_CREATE) < 0) {
|
if (check_private_dir(statsdir, CPD_CREATE, get_options()->User) < 0) {
|
||||||
log_warn(LD_HIST, "Unable to create stats/ directory!");
|
log_warn(LD_HIST, "Unable to create stats/ directory!");
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user