httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From guill...@clipper.ens.fr (Florent Guillaume)
Subject Re: apache V0.8.8 under Linux (fwd)
Date Thu, 17 Aug 1995 14:32:22 GMT
>[James]
> The patch would be:
> 
> --- mod_access.c-dist   Thu Aug 17 02:14:07 1995
> +++ mod_access.c        Thu Aug 17 02:14:28 1995
> @@ -93,7 +93,7 @@
>          (access_dir_conf *)pcalloc(p, sizeof(access_dir_conf));
>      int i;
>      
> -    for (i = 0; i < METHODS; ++i) conf->order[i] = NULL;
> +    for (i = 0; i < METHODS; ++i) conf->order[i] = (int)NULL;
>      conf->allows = make_array (p, 1, sizeof (allowdeny));
>      conf->denys = make_array (p, 1, sizeof (allowdeny));
>      

Uh, I'd rather see something cleaner and more explicit, like :

--- mod_access.c-dist   Thu Aug 17 02:14:07 1995
+++ mod_access.c        Thu Aug 17 02:14:28 1995
@@ -93,7 +93,7 @@
         (access_dir_conf *)pcalloc(p, sizeof(access_dir_conf));
     int i;
     
-    for (i = 0; i < METHODS; ++i) conf->order[i] = NULL;
+    for (i = 0; i < METHODS; ++i) conf->order[i] = DENY_THEN_ALLOW;
     conf->allows = make_array (p, 1, sizeof (allowdeny));
     conf->denys = make_array (p, 1, sizeof (allowdeny));
     


-- 
Florent.Guillaume@ens.fr

Mime
View raw message