projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
83fa44c
)
Don't check file permissions on Windows during fsck.
author
Guus Sliepen
<guus@tinc-vpn.org>
Sat, 23 Apr 2016 19:39:53 +0000
(21:39 +0200)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Sat, 23 Apr 2016 19:39:53 +0000
(21:39 +0200)
src/fsck.c
patch
|
blob
|
history
diff --git
a/src/fsck.c
b/src/fsck.c
index
138b1cd
..
b90710b
100644
(file)
--- a/
src/fsck.c
+++ b/
src/fsck.c
@@
-216,6
+216,7
@@
int fsck(const char *argv0) {
return 1;
}
return 1;
}
+#if !defined(HAVE_MINGW) && !defined(HAVE_CYGWIN)
if(st.st_mode & 077) {
fprintf(stderr, "WARNING: unsafe file permissions on %s.\n", fname);
if(st.st_uid != uid) {
if(st.st_mode & 077) {
fprintf(stderr, "WARNING: unsafe file permissions on %s.\n", fname);
if(st.st_uid != uid) {
@@
-227,6
+228,7
@@
int fsck(const char *argv0) {
fprintf(stderr, "Fixed permissions of %s.\n", fname);
}
}
fprintf(stderr, "Fixed permissions of %s.\n", fname);
}
}
+#endif
}
#endif
}
#endif
@@
-255,6
+257,7
@@
int fsck(const char *argv0) {
return 1;
}
return 1;
}
+#if !defined(HAVE_MINGW) && !defined(HAVE_CYGWIN)
if(st.st_mode & 077) {
fprintf(stderr, "WARNING: unsafe file permissions on %s.\n", fname);
if(st.st_uid != uid) {
if(st.st_mode & 077) {
fprintf(stderr, "WARNING: unsafe file permissions on %s.\n", fname);
if(st.st_uid != uid) {
@@
-266,6
+269,7
@@
int fsck(const char *argv0) {
fprintf(stderr, "Fixed permissions of %s.\n", fname);
}
}
fprintf(stderr, "Fixed permissions of %s.\n", fname);
}
}
+#endif
}
#ifdef DISABLE_LEGACY
}
#ifdef DISABLE_LEGACY