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

[tor-commits] [torsocks/master] Use DEFAULT_CONF_FILE_ENV instead of a hardcoded value.



commit 80e10aa121cbc3476ef3960f96eaf55843c7c5be
Author: Alexander Færøy <ahf@xxxxxxx>
Date:   Mon Oct 12 21:56:30 2015 +0200

    Use DEFAULT_CONF_FILE_ENV instead of a hardcoded value.
    
    This is a trivial clean-up patch that makes init_config() use the
    DEFAULT_CONF_FILE_ENV define instead of the hardcoded string literal.
    
    Signed-off-by: David Goulet <dgoulet@xxxxxxxxx>
---
 src/lib/torsocks.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/torsocks.c b/src/lib/torsocks.c
index 9d92e82..305ad22 100644
--- a/src/lib/torsocks.c
+++ b/src/lib/torsocks.c
@@ -141,7 +141,7 @@ static void init_config(void)
 	const char *filename = NULL;
 
 	if (!is_suid) {
-		filename = getenv("TORSOCKS_CONF_FILE");
+		filename = getenv(DEFAULT_CONF_FILE_ENV);
 	}
 
 	ret  = config_file_read(filename, &tsocks_config);



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits