[Pkg-privacy-commits] [torsocks] 23/38: Use DEFAULT_CONF_FILE_ENV instead of a hardcoded value.

Intrigeri intrigeri at moszumanska.debian.org
Thu Jun 23 15:18:24 UTC 2016


This is an automated email from the git hooks/post-receive script.

intrigeri pushed a commit to branch experimental/master
in repository torsocks.

commit 80e10aa121cbc3476ef3960f96eaf55843c7c5be
Author: Alexander Færøy <ahf at 0x90.dk>
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 at ev0ke.net>
---
 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);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/torsocks.git



More information about the Pkg-privacy-commits mailing list