diff options
Diffstat (limited to 'src/or/config.c')
-rw-r--r-- | src/or/config.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/or/config.c b/src/or/config.c index b7f4dd3f3f..961d6887ef 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -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")) { |