From 13ad35a7d68f2da9ef85984a219a637b5d083adb Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 25 Jan 1996 18:23:50 +0000 Subject: [PATCH] real test for executable script --- Lib/CGIHTTPServer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,