aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2004-01-13 07:03:03 +0000
committerEric S. Raymond <esr@thyrsus.com>2004-01-13 07:03:03 +0000
commit798868f26c1bd20798f4ffc1a011bed9d063de99 (patch)
tree47ccdf0568281e4795284e15ca886ec6ec5ce139
parentcbd3a0b35222d2f720da82df0504469da064ff68 (diff)
downloadfetchmail-798868f26c1bd20798f4ffc1a011bed9d063de99.tar.gz
fetchmail-798868f26c1bd20798f4ffc1a011bed9d063de99.tar.bz2
fetchmail-798868f26c1bd20798f4ffc1a011bed9d063de99.zip
Enable permissions checking under Cygwin.
svn path=/trunk/; revision=3874
-rw-r--r--rcfile_y.y7
1 files changed, 7 insertions, 0 deletions
diff --git a/rcfile_y.y b/rcfile_y.y
index fc3970a5..95fc4f69 100644
--- a/rcfile_y.y
+++ b/rcfile_y.y
@@ -26,6 +26,10 @@
#include <net/security.h>
#endif /* NET_SECURITY */
+#if defined(__CYGWIN__)
+#include <sys/cygwin.h>
+#endif /* __CYGWIN__ */
+
#include "fetchmail.h"
#include "i18n.h"
@@ -437,6 +441,9 @@ int prc_filecheck(const char *pathname, const flag securecheck)
}
#ifndef __BEOS__
+#ifdef __CYGWIN__
+ if (cygwin_internal(CW_CHECK_NTSEC, pathname))
+#endif /* __CYGWIN__ */
if (statbuf.st_mode & (S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH | S_IXOTH))
{
fprintf(stderr, GT_("File %s must have no more than -rwx--x--- (0710) permissions.\n"),