From 798868f26c1bd20798f4ffc1a011bed9d063de99 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 13 Jan 2004 07:03:03 +0000 Subject: Enable permissions checking under Cygwin. svn path=/trunk/; revision=3874 --- rcfile_y.y | 7 +++++++ 1 file changed, 7 insertions(+) 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 #endif /* NET_SECURITY */ +#if defined(__CYGWIN__) +#include +#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"), -- cgit v1.2.3