]> Pileus Git - ~andy/fetchmail/commitdiff
Enable permissions checking under Cygwin.
authorEric S. Raymond <esr@thyrsus.com>
Tue, 13 Jan 2004 07:03:03 +0000 (07:03 -0000)
committerEric S. Raymond <esr@thyrsus.com>
Tue, 13 Jan 2004 07:03:03 +0000 (07:03 -0000)
svn path=/trunk/; revision=3874

rcfile_y.y

index fc3970a54dfabd9fe46c04d53387ec35de3367dc..95fc4f6945bc2beeb70e28394af8d1c28d925f9a 100644 (file)
 #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"),