Mailing List Archive

cvs commit: apache/src mod_proxy.c
ben 96/03/30 15:36:03

Modified: src mod_proxy.c
Log:
In the pursit of portability, use HUGE_STRING_LEN instead of PATHSIZE, PATH_MAX,
MAXPATHLEN or any other variant.

Revision Changes Path
1.14 +4 -3 apache/src/mod_proxy.c

Index: mod_proxy.c
===================================================================
RCS file: /export/home/cvs/apache/src/mod_proxy.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -C3 -r1.13 -r1.14
*** mod_proxy.c 1996/03/30 18:19:47 1.13
--- mod_proxy.c 1996/03/30 23:36:01 1.14
***************
*** 53,59 ****
/*
Note that the Explain() stuff is not yet complete.
Also note numerous FIXMEs and CHECKMEs which should be eliminated.
! If TESTING is set, then grabage collection doesn't delete ... probably a good
idea when hacking.

This code is still experimental!
--- 53,60 ----
/*
Note that the Explain() stuff is not yet complete.
Also note numerous FIXMEs and CHECKMEs which should be eliminated.
!
! If TESTING is set, then garbage collection doesn't delete ... probably a good
idea when hacking.

This code is still experimental!
***************
*** 1367,1373 ****
const char *cachebasedir,const char *cachesubdir)
{
char line[27];
! char cachedir[PATHSIZE];
struct stat buf;
int fd,i;
DIR *dir;
--- 1368,1374 ----
const char *cachebasedir,const char *cachesubdir)
{
char line[27];
! char cachedir[HUGE_STRING_LEN];
struct stat buf;
int fd,i;
DIR *dir;
***************
*** 1425,1431 ****
}
if(S_ISDIR(buf.st_mode))
{
! char newcachedir[PATHSIZE];
close(fd);
sprintf(newcachedir,"%s%s/",cachesubdir,ent->d_name);
if(!sub_garbage_coll(r,files,cachebasedir,newcachedir))
--- 1426,1432 ----
}
if(S_ISDIR(buf.st_mode))
{
! char newcachedir[HUGE_STRING_LEN];
close(fd);
sprintf(newcachedir,"%s%s/",cachesubdir,ent->d_name);
if(!sub_garbage_coll(r,files,cachebasedir,newcachedir))