Fix another check_private_dir instance in master

This commit is contained in:
Nick Mathewson 2011-06-14 12:28:16 -04:00
parent 8839b86085
commit 22efe20309

View File

@ -2758,7 +2758,7 @@ rep_hist_conn_stats_write(time_t now)
/* Try to write to disk. */
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!");
goto done;
}