mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
If Tor is invoked from something that isn't a shell (e.g. Vidalia),
now we expand "-f ~/.tor/torrc" correctly. Suggested by Matt Edman. svn:r10351
This commit is contained in:
@@ -3184,7 +3184,13 @@ options_init_from_torrc(int argc, char **argv)
|
||||
log(LOG_WARN, LD_CONFIG, "Duplicate -f options on command line.");
|
||||
tor_free(fname);
|
||||
}
|
||||
#ifdef MS_WINDOWS
|
||||
/* XXX one day we might want to extend expand_filename to work
|
||||
* under Windows as well. */
|
||||
fname = tor_strdup(argv[i+1]);
|
||||
#else
|
||||
fname = expand_filename(argv[i+1]);
|
||||
#endif
|
||||
using_default_torrc = 0;
|
||||
++i;
|
||||
} else if (!strcmp(argv[i],"--ignore-missing-torrc")) {
|
||||
|
||||
Reference in New Issue
Block a user