From 36378eb1c65dc189015799b4025f24946b0af0de Mon Sep 17 00:00:00 2001 From: Solderpunk Date: Wed, 1 Jul 2020 16:04:48 +0200 Subject: [PATCH] Make sure CGI files are world-readable as well as world-executable. --- dynamic.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dynamic.go b/dynamic.go index 644b52e..df46e43 100644 --- a/dynamic.go +++ b/dynamic.go @@ -32,7 +32,7 @@ func handleCGI(config Config, path string, cgiPath string, URL *url.URL, log *Lo break } else if info.IsDir() { continue - } else if info.Mode().Perm()&0111 == 0111 { + } else if info.Mode().Perm()&0555 == 0555 { matched = true break }