httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Kluft <ikl...@cisco.com>
Subject Re: mod_mime_magic.c and mod_cern_meta.c
Date Fri, 11 Jul 1997 05:24:00 GMT
> From: Marc Slemko <marcs@worldgate.com>
> They don't play well together.  
> 
> I get many:
> 
> [Thu Jul 10 22:35:41 1997] can't stat `/usr/home/marcs/public_html/.web' (No such file
or directory).
> 
> mod_cern_meta appears to be doing ten zillion (try it on a directory index
> with lots of files) subrequests which makes things unhappy.  Can I blame
> Dean?  <g>
> 
> Sigh.  Should mod_mime_magic not whine on non-existent files, but simply
> exit?  Should mod_cern_meta be nicer?

That warning has been one that I've been on-the-fence about whether to
remove it or not.  It also originated from file(1).

But here I didn't have anything that aggravated it so much.  Since your
circumstance can't be alone, now I know which way to decide on that one.
Another patch attached...  It has been tested.
-- 
Ian Kluft  KO6YQ PP-ASEL                                  Cisco Systems, Inc.
ikluft@cisco.com (work)  ikluft@thunder.sbay.org (home)          San Jose, CA

------------------------------------------------------------------------------
*** mod_mime_magic.c.orig       Tue Jul  8 18:00:17 1997
--- mod_mime_magic.c    Thu Jul 10 22:13:30 1997
***************
*** 1517,1525 ****
      ret = stat(fn, sb);    /* don't merge into if; see "ret =" above */
  
      if (ret) {
-         log_printf(r->server,
-         /* No \n, caller will provide. */
-                "can't stat `%s' (%s).", fn, strerror(errno));
          return 1;
      }
  
--- 1517,1522 ----

Mime
View raw message