httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chuck Murcko <ch...@hyperreal.com>
Subject cvs commit: apache/src/modules/proxy proxy_cache.c
Date Mon, 25 Nov 1996 15:22:13 GMT
chuck       96/11/25 07:22:13

  Modified:    src/modules/proxy  proxy_cache.c
  Log:
  Cleanup promised earlier which didn't make it in.
  
  Revision  Changes    Path
  1.7       +3 -7      apache/src/modules/proxy/proxy_cache.c
  
  Index: proxy_cache.c
  ===================================================================
  RCS file: /export/home/cvs/apache/src/modules/proxy/proxy_cache.c,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -C3 -r1.6 -r1.7
  *** proxy_cache.c	1996/11/25 02:49:53	1.6
  --- proxy_cache.c	1996/11/25 15:22:11	1.7
  ***************
  *** 781,797 ****
    #define TMPFILESTR	"/tmpXXXXXX"
        if (conf->cache.root == NULL)
            return DECLINED;
  !     c->tempfile=palloc(r->pool,strlen(conf->cache.root)+sizeof TMPFILESTR);
        strcpy(c->tempfile,conf->cache.root);
  -     /*
  -     p = strrchr(c->tempfile, '/');
  -     if (p == NULL) return DECLINED;
  -     strcpy(p, TMPFILESTR);
  -     */
        strcat(c->tempfile,TMPFILESTR);
    #undef TMPFILESTR
        p = mktemp(c->tempfile);
  !     if (p == NULL) return DECLINED;
    
        Explain1("Create temporary file %s",c->tempfile);
    
  --- 781,793 ----
    #define TMPFILESTR	"/tmpXXXXXX"
        if (conf->cache.root == NULL)
            return DECLINED;
  !     c->tempfile=palloc(r->pool,strlen(conf->cache.root)+sizeof(TMPFILESTR));
        strcpy(c->tempfile,conf->cache.root);
        strcat(c->tempfile,TMPFILESTR);
    #undef TMPFILESTR
        p = mktemp(c->tempfile);
  !     if (p == NULL)
  !         return DECLINED;
    
        Explain1("Create temporary file %s",c->tempfile);
    
  
  
  

Mime
View raw message