diff options
author | David Sommerseth <dazo@users.sourceforge.net> | 2008-09-29 12:12:11 +0200 |
---|---|---|
committer | David Sommerseth <dazo@users.sourceforge.net> | 2008-09-29 12:12:11 +0200 |
commit | 2b2fc4600c383cfc465a634657b0f3837f664770 (patch) | |
tree | c20d2ed682838ddfd53d9c8490f008dd879b7387 | |
parent | 0dda5e371b2ddc8e0da57cc79d81c652fc6b9695 (diff) | |
download | eurephia-2b2fc4600c383cfc465a634657b0f3837f664770.tar.gz eurephia-2b2fc4600c383cfc465a634657b0f3837f664770.tar.xz eurephia-2b2fc4600c383cfc465a634657b0f3837f664770.zip |
BUGFIX: Fixed crash on start
In commit 6a508ab21e6e0127830a99410070476f9f94c7d1 the API changed for
get_env(...), and it was not corrected in eurephia-auth.c
-rw-r--r-- | eurephia-auth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/eurephia-auth.c b/eurephia-auth.c index 8831581..674496a 100644 --- a/eurephia-auth.c +++ b/eurephia-auth.c @@ -72,9 +72,9 @@ static void dump_env(FILE *f, const char *prefix, const char *envp[]) { // static void daemonize(const char *envp[]) { - const char *daemon_string = get_env(NULL, envp, "daemon"); + const char *daemon_string = get_env(NULL, 0, envp, "daemon"); if( daemon_string && daemon_string[0] == '1' ) { - const char *log_redirect = get_env(NULL, envp, "daemon_log_redirect"); + const char *log_redirect = get_env(NULL, 0, envp, "daemon_log_redirect"); int fd = -1; if( log_redirect && log_redirect[0] == '1' ) { fd = dup (2); |