httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <dgau...@arctic.org>
Subject Re: mod_cgi/918: if not using suexec, apache forces user to use server gid/uid settings
Date Sun, 27 Jul 1997 19:14:24 GMT


On Sun, 27 Jul 1997, Randy Terbush wrote:

> Index: mod_cgi.c
> ===================================================================
> RCS file: /export/home/cvs/apache/src/mod_cgi.c,v
> retrieving revision 1.50
> diff -u -3 -r1.50 mod_cgi.c
> --- mod_cgi.c	1997/07/24 04:23:59	1.50
> +++ mod_cgi.c	1997/07/27 18:48:13
> @@ -394,7 +394,7 @@
>  			       "script not found or unable to stat");
>  #endif
>      if (!suexec_enabled) {
> -        if (!can_exec(&r->finfo))
> +        if (!can_exec(r))
>              return log_scripterror(r, conf, FORBIDDEN,
>                                     "file permissions deny server execution");
>      }

I think you mean:

-    if (!suexec_enabled) {
-        if (!can_exec(&r->finfo))
-            return log_scripterror(r, conf, FORBIDDEN,
-                                   "file permissions deny server execution");
-    }
+    if (!can_exec(&r->finfo))
+        return log_scripterror(r, conf, FORBIDDEN,
+                               "file permissions deny server execution");

At any rate the submitter of 918 is checking out what's really wrong.
It became a problem for him going from a late beta of 1.2 to 1.2.1.

Dean


Mime
View raw message