[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] we should exit(1) if $HOME doesn"t exist and we needed it



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

Modified Files:
	config.c 
Log Message:
we should exit(1) if $HOME doesn't exist and we needed it


Index: config.c
===================================================================
RCS file: /home/or/cvsroot/src/or/config.c,v
retrieving revision 1.155
retrieving revision 1.156
diff -u -d -r1.155 -r1.156
--- config.c	8 Sep 2004 06:52:33 -0000	1.155
+++ config.c	10 Sep 2004 19:16:01 -0000	1.156
@@ -1044,6 +1044,9 @@
   }
   if (d && strncmp(d,"~/",2)==0) {
     char *fn = expand_filename(d);
+    if(!fn) {
+      /* XXX complain and exit(1) here */
+    }
     tor_free(options->DataDirectory);
     options->DataDirectory = fn;
   }