diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2004-01-13 07:03:03 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2004-01-13 07:03:03 +0000 |
commit | 798868f26c1bd20798f4ffc1a011bed9d063de99 (patch) | |
tree | 47ccdf0568281e4795284e15ca886ec6ec5ce139 | |
parent | cbd3a0b35222d2f720da82df0504469da064ff68 (diff) | |
download | fetchmail-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.y | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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"), |