From 1135669b3c6820f5473ea451a58865f552ba768f Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Wed, 6 Feb 2013 11:30:35 +0100 Subject: [PATCH] Fix tincd terminating immediately on Windows. --- src/tincd.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/tincd.c b/src/tincd.c index 7336a5f0..1feab407 100644 --- a/src/tincd.c +++ b/src/tincd.c @@ -246,9 +246,7 @@ static bool parse_options(int argc, char **argv) { } static bool drop_privs(void) { -#ifdef HAVE_MINGW - return false; -#else +#ifndef HAVE_MINGW uid_t uid = 0; if (switchuser) { struct passwd *pw = getpwnam(switchuser); -- 2.39.5