projects
/
oweals
/
tinc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6568cff
)
Fix invalid getuid() call on Windows.
author
Etienne Dechamps
<etienne@edechamps.fr>
Sat, 14 Mar 2015 16:07:54 +0000
(16:07 +0000)
committer
Etienne Dechamps
<etienne@edechamps.fr>
Sat, 14 Mar 2015 16:07:54 +0000
(16:07 +0000)
This is breaking the Windows build. Regression was introduced in
268e3ffca7b45cfc736e1bc9bec7a113c6c45701
.
src/fsck.c
patch
|
blob
|
history
diff --git
a/src/fsck.c
b/src/fsck.c
index 8df95ec6f7a17de386a9f51c78d1a886dc3e5dd9..205a599c4eef10354b9ce9f7c4a08e17c05932a8 100644
(file)
--- 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.