From 6521c2ce51b3b808dd8ef5c47dc9995acce149e5 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Tue, 9 Nov 2004 07:05:53 +0000 Subject: Stop using the wrong DataDirectory when we're validating. Also validate/normalize the DataDirectory better. svn:r2732 --- src/or/hibernate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/or/hibernate.c') diff --git a/src/or/hibernate.c b/src/or/hibernate.c index abe662c81a..c01d1c32c1 100644 --- a/src/or/hibernate.c +++ b/src/or/hibernate.c @@ -328,7 +328,7 @@ record_bandwidth_usage(time_t now) (unsigned long)n_seconds_active_in_interval, (unsigned long)expected_bandwidth_usage); tor_snprintf(fname, sizeof(fname), "%s/bw_accounting", - get_data_directory()); + get_options()->DataDirectory); return write_str_to_file(fname, buf, 0); } @@ -347,7 +347,7 @@ read_bandwidth_usage(void) int ok; tor_snprintf(fname, sizeof(fname), "%s/bw_accounting", - get_data_directory()); + get_options()->DataDirectory); if (!(s = read_file_to_str(fname, 0))) { return 0; } -- cgit v1.2.3-54-g00ecf