From: Guus Sliepen Date: Wed, 6 Feb 2013 10:30:35 +0000 (+0100) Subject: Fix tincd terminating immediately on Windows. X-Git-Tag: import-tinc-1.1~185 X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=1135669b3c6820f5473ea451a58865f552ba768f;p=meshlink Fix tincd terminating immediately on Windows. --- 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);