about summary refs log tree commit diff stats
path: root/src/LYCgi.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>1999-07-14 16:44:55 -0400
committerThomas E. Dickey <dickey@invisible-island.net>1999-07-14 16:44:55 -0400
commita2a1ab1ed484fec332c6dcccb8d033f1c33bb0b5 (patch)
treedd9b34832247f03ce3fb9142353197cc651f176b /src/LYCgi.c
parent83824f14360f92f8a3a47ac5f136bb077b141065 (diff)
downloadlynx-snapshots-a2a1ab1ed484fec332c6dcccb8d033f1c33bb0b5.tar.gz
snapshot of project "lynx", label v2-8-3dev_4
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.
 	 */