[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
- To: or-cvs@freehaven.net
- Subject: [or-cvs] we should exit(1) if $HOME doesn"t exist and we needed it
- From: arma@seul.org (Roger Dingledine)
- Date: Fri, 10 Sep 2004 15:16:04 -0400 (EDT)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Fri, 10 Sep 2004 15:16:29 -0400
- Reply-to: or-dev@freehaven.net
- Sender: owner-or-cvs@freehaven.net
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;
}