cwd to datadir if it's defined, rather than /

this way people can get cores if they want to


svn:r1171
This commit is contained in:
Roger Dingledine 2004-02-28 23:23:06 +00:00
parent 5cf0b6224b
commit 928db6dadc

View File

@ -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 */