about summary refs log tree commit diff stats
path: root/src/LYCgi.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/LYCgi.c')
-rw-r--r--src/LYCgi.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/LYCgi.c b/src/LYCgi.c
index 9e0bfce0..375206a6 100644
--- a/src/LYCgi.c
+++ b/src/LYCgi.c
@@ -238,8 +238,15 @@ PRIVATE int LYLoadCGI ARGS4(
 	PERROR("stat() failed");
 	status = -4;
 
-    } else if (!(S_ISREG(stat_buf.st_mode) &&
-		 stat_buf.st_mode & (S_IXUSR|S_IXGRP|S_IXOTH))) {
+    } else
+#ifdef _WINDOWS	/* 1998/01/14 (Wed) 09:16:04 */
+    if (!(S_ISREG(stat_buf.st_mode) &&
+		 stat_buf.st_mode & (S_IXUSR))) 
+#else
+    if (!(S_ISREG(stat_buf.st_mode) &&
+		 stat_buf.st_mode & (S_IXUSR|S_IXGRP|S_IXOTH))) 
+#endif
+    {
 	/*
 	 *  Not a runnable file, See if we can load it using "file:" code.
 	 */