httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <...@gonzo.ben.algroup.co.uk>
Subject Re: Patch to make 1.2b3 compatible with Tenon's Machten 4.0.3 (fwd)
Date Tue, 07 Jan 1997 09:33:38 GMT
Brian Behlendorf wrote:
> 
> 
> Hmm:
> 
> > *** DIST/http_main.c	Thu Dec 26 13:14:02 1996
> > --- http_main.c	Thu Dec 26 13:15:31 1996
> > ***************
> > *** 182,188 ****
> > --- 182,192 ----
> >       {
> >       char lock_fname[30];
> >   
> > + #ifdef __MACHTEN__
> > +     strcpy(lock_fname, "/var/tmp/htlock.XXXXXX");
> > + #else
> >       strcpy(lock_fname, "/usr/tmp/htlock.XXXXXX");
> > + #endif
> >       
> >       if (mktemp(lock_fname) == NULL || lock_fname[0] == '\0')
> >       {
> > 
> > 
> 
> There's gotta be a more generic solution than this, no?

Yeah. Use /tmp.

Cheers,

Ben.

-- 
Ben Laurie                Phone: +44 (181) 994 6435  Email: ben@algroup.co.uk
Freelance Consultant and  Fax:   +44 (181) 994 6472
Technical Director        URL: http://www.algroup.co.uk/Apache-SSL
A.L. Digital Ltd,         Apache Group member (http://www.apache.org)
London, England.          Apache-SSL author

Mime
View raw message