From 4989362300f800a6f407508f1e0127867cf80cba Mon Sep 17 00:00:00 2001 From: Etienne Dechamps Date: Sat, 14 Mar 2015 16:07:54 +0000 Subject: [PATCH] Fix invalid getuid() call on Windows. This is breaking the Windows build. Regression was introduced in 268e3ffca7b45cfc736e1bc9bec7a113c6c45701. --- src/fsck.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/fsck.c b/src/fsck.c index 8df95ec6..205a599c 100644 --- a/src/fsck.c +++ b/src/fsck.c @@ -155,7 +155,11 @@ static void check_conffile(const char *fname, bool server) { } int fsck(const char *argv0) { +#ifdef HAVE_MINGW + int uid = 0; +#else uid_t uid = getuid(); +#endif // Check that tinc.conf is readable. -- 2.20.1