index 7654f1bfd608d151a213937614449cc497bb638b..e925ca1f8973a05a66b5c09b45e3451f65e3a1e7 100644 (file)
--- a/help.c
+++ b/help.c
!S_ISREG(st.st_mode))
return 0;
-#ifdef WIN32
+#if defined(WIN32) || defined(__CYGWIN__)
+#if defined(__CYGWIN__)
+if ((st.st_mode & S_IXUSR) == 0)
+#endif
{ /* cannot trust the executable bit, peek into the file instead */
char buf[3] = { 0 };
int n;