aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-01-25 18:23:50 +0000
committerGuido van Rossum <guido@python.org>1996-01-25 18:23:50 +0000
commit13ad35a7d68f2da9ef85984a219a637b5d083adb (patch)
treec139e56ac852460263de1de1902162288d6313a6
parent5bb05da6f751a9363c44188f04b50aaa8074a97b (diff)
downloadcpython-13ad35a7d68f2da9ef85984a219a637b5d083adb.tar.gz
cpython-13ad35a7d68f2da9ef85984a219a637b5d083adb.zip
real test for executable script
-rw-r--r--Lib/CGIHTTPServer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/CGIHTTPServer.py b/Lib/CGIHTTPServer.py
index bcb2ef4b2fa..837f7c2ea6b 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,