Fix invalid getuid() call on Windows.
This is breaking the Windows build. Regression was introduced in
268e3ffca7
.
This commit is contained in:
parent
6568cffd52
commit
4989362300
1 changed files with 4 additions and 0 deletions
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in a new issue