Переглянути джерело

Fix another check_private_dir instance in master

Nick Mathewson 13 роки тому
батько
коміт
22efe20309
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      src/or/rephist.c

+ 1 - 1
src/or/rephist.c

@@ -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;
   }
   }