Suggested by Mitz Pettel, reviewed by Darin.
authorap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 23 Feb 2006 17:25:36 +0000 (17:25 +0000)
committerap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 23 Feb 2006 17:25:36 +0000 (17:25 +0000)
        * Scripts/run-webkit-tests: Pass User and Group directives, so that Apache
        can run CGIs even if the permissions are 700 or 600.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@12946 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKitTools/ChangeLog
WebKitTools/Scripts/run-webkit-tests

index f0dc326272faf27552bc0d438ac9fea87b1d9ae3..33fd4edcd8a5c5f0de0d286e7092eac6dc028d42 100644 (file)
@@ -1,3 +1,10 @@
+2006-02-23  Alexey Proskuryakov  <ap@nypop.com>
+
+        Suggested by Mitz Pettel, reviewed by Darin.
+
+        * Scripts/run-webkit-tests: Pass User and Group directives, so that Apache
+        can run CGIs even if the permissions are 700 or 600.
+
 2006-02-23  Darin Adler  <darin@apple.com>
 
         Collaborating with Alexey.
index dde03171e4b640909195ff001e5a7669a3f81cfb..38d2a668fc934d7d7f92517f7b2b21a8c9c45697 100755 (executable)
@@ -234,7 +234,9 @@ sub openHTTPDIfNeeded()
         "-C", "Listen $listen",
         "-c", "TypesConfig \"$typesConfig\"",
         "-c", "CustomLog \"$absTestResultsDirectory/access_log.txt\" common",
-        "-c", "ErrorLog \"$absTestResultsDirectory/error_log.txt\"");
+        "-c", "ErrorLog \"$absTestResultsDirectory/error_log.txt\"",
+        "-c", "User \"#" . `id -u` . "\"",  # Apache wouldn't run CGIs with permissions==700 otherwise
+        "-c", "Group \"#" . `id -g` . "\"");
 
     sleep 1; # FIXME: need a better way to wait for Apache to bind to the port
     $httpdOpen = 1;