Return-Path: Delivered-To: new-httpd-archive@hyperreal.org Received: (qmail 15676 invoked by uid 6000); 20 Oct 1997 18:26:52 -0000 Received: (qmail 15355 invoked from network); 20 Oct 1997 18:26:42 -0000 Received: from eastwood.aldigital.algroup.co.uk (194.128.162.193) by taz.hyperreal.org with SMTP; 20 Oct 1997 18:26:42 -0000 Received: from freeby.ben.algroup.co.uk (freeby.ben.algroup.co.uk [193.133.15.6]) by eastwood.aldigital.algroup.co.uk (8.6.12/8.6.12) with ESMTP id SAA19279 for ; Mon, 20 Oct 1997 18:25:18 GMT Received: from algroup.co.uk (naughty.ben.algroup.co.uk [193.133.15.107]) by freeby.ben.algroup.co.uk (8.6.12/8.6.12) with ESMTP id TAA00538 for ; Mon, 20 Oct 1997 19:25:09 +0100 Message-ID: <344BA1F5.6B07A58D@algroup.co.uk> Date: Mon, 20 Oct 1997 19:24:53 +0100 From: Ben Laurie Organization: A.L. Digital Ltd. X-Mailer: Mozilla 4.03 [en] (WinNT; I) MIME-Version: 1.0 To: new-httpd@apache.org Subject: Re: cvs commit: apachen/src/main alloc.c util_script.c References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: new-httpd-owner@apache.org Precedence: bulk Reply-To: new-httpd@apache.org Paul Sutton wrote: > > On 20 Oct 1997 ben@hyperreal.org wrote: > > } > > } > > + /* FIXME: Probably ought to do this in another buffer - Ben */ > > + /* This really annoys me - Win95 (and not NT) spawn[vl]e don't like '/'! - Ben */ > > + for(s=r->filename ; *s ; ++s) > > + if(*s == '/') > > + *s='\\'; > > > > if ((!r->args) || (!r->args[0]) || (ind(r->args, '=') >= 0)) { > > if (is_exe || is_binary) { > > Ben, have you found this necessary now? When Ambarish's first NT port came > to light I noticed that my Win95 machines would not run CGI without > exactly this patch, but you could run CGI fine: > > | Date: Sun, 25 May 1997 14:18:08 +0100 (BST) > | From: Ben Laurie > | Reply-To: dev-nt@apache.org > | To: dev-nt@apache.org > | Subject: Re: [BUG] spawning children on Win95 > | > | Paul Sutton wrote: > | > I couldn't get CGI to work on Windows 95... the reason seems to be that > | > spawn*() functions do not understand forward slashes (/) in the pathname. > > | Hmmm ... I've got CGI working on Win95, without changes. But you are right, > | / _used_ to work fine instead of \ everywhere, but now some functions need it. > | Irritating, isn't it? > | > | I suppose the way you are doing your CGIs must be different from me... > > This could've have been fixed way back in May, though I guess that > perhaps MS have been fiddling with the system calls in service packs > and IE4 "upgrades". Strange isn't it? I'm afraid I don't remember the history, but anyway, if you needed / converted to \ then that's what you needed. It ain't my fault you didn't add a patch. I wonder - the critical difference in my test scenario is that I was using all local disk (back in May? whenever), but now I'm using a network mount. > Incidently it would be nice if the patched code used the Apache style > guide. Hmmm ... if I knew in what way I'd erred, I'd fix it. Cheers, Ben. -- Ben Laurie |Phone: +44 (181) 735 0686|Apache Group member Freelance Consultant |Fax: +44 (181) 735 0689|http://www.apache.org and Technical Director|Email: ben@algroup.co.uk |Apache-SSL author A.L. Digital Ltd, |http://www.algroup.co.uk/Apache-SSL London, England. |"Apache: TDG" http://www.ora.com/catalog/apache