summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/CGIHTTPServer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/CGIHTTPServer.py b/Lib/CGIHTTPServer.py
index bcb2ef4..837f7c2 100644
--- a/Lib/CGIHTTPServer.py
+++ b/Lib/CGIHTTPServer.py
@@ -186,7 +186,7 @@ def executable(path):
st = os.stat(path)
except os.error:
return 0
- return 1
+ return st[0] & 0111 != 0
def test(HandlerClass = CGIHTTPRequestHandler,