From 928db6dadc7609213247f1fd6a39884e7b66eaa1 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Sat, 28 Feb 2004 23:23:06 +0000 Subject: cwd to datadir if it's defined, rather than / this way people can get cores if they want to svn:r1171 --- src/or/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/or/main.c b/src/or/main.c index 2dacb013d..831f0c785 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -672,7 +672,7 @@ int tor_main(int argc, char *argv[]) { #endif if (options.RunAsDaemon) { - start_daemon(); + start_daemon(options.DataDirectory); } if(options.ORPort) { /* only spawn dns handlers if we're a router */ -- cgit v1.2.3