[or-cvs] cwd to datadir if it"s defined, rather than /

Roger Dingledine arma at seul.org
Sat Feb 28 23:23:08 UTC 2004


Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or

Modified Files:
	main.c 
Log Message:
cwd to datadir if it's defined, rather than /
this way people can get cores if they want to


Index: main.c
===================================================================
RCS file: /home/or/cvsroot/src/or/main.c,v
retrieving revision 1.179
retrieving revision 1.180
diff -u -d -r1.179 -r1.180
--- main.c	28 Feb 2004 19:14:11 -0000	1.179
+++ main.c	28 Feb 2004 23:23:06 -0000	1.180
@@ -672,7 +672,7 @@
 #endif
 
   if (options.RunAsDaemon) {
-    start_daemon();
+    start_daemon(options.DataDirectory);
   }
 
   if(options.ORPort) { /* only spawn dns handlers if we're a router */



More information about the tor-commits mailing list