You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Martin Kraemer <Ma...@mch.sni.de> on 2000/02/01 01:31:55 UTC

Re: cvs commit: apache-2.0/src/lib/apr/file_io/win32 filestat.c

On Tue, Feb 01, 2000 at 12:15:14AM -0000, stoddard@hyperreal.org wrote:
>   +    if (ext && (!strcasecmp(ext,".exe") || !strcasecmp(ext,".com") ||
>   +                !strcasecmp(ext,".bat") || !strcasecmp(ext,".cmd"))) {
>   +        return TRUE;

I'm not sure, but doesn't windows treat *.pif files in a similar way as
*.bat? And what about *.lnk?
I dislike windows, so bear with me if this is a stupid question.

    Martin
-- 
  <Ma...@MchP.Siemens.De>      |       Fujitsu Siemens
       <ma...@apache.org>              |   81730  Munich,  Germany
((See you at ApacheCon 2000 in Orlanda, Florida, March 8-10, 2000!))
		   <URL:http://ApacheCon.Com/>

Re: cvs commit: apache-2.0/src/lib/apr/file_io/win32 filestat.c

Posted by rb...@apache.org.
> > I'm not sure, but doesn't windows treat *.pif files in a similar way as
> > *.bat? And what about *.lnk
> 
> I don't know. And I'm not sure it matters for Apache purposes.

You're not writing Apache code per say.  You're writing APR code.  This
may not matter now, when nobody else is using APR, but at least add a
comment because if and when APR takes off this is a bug that will need to
be fixed.  If it isn't added by the time I get back to Raleigh and have
access to a machine with both the code and a modem, I'll add it myself.

Ryan


Come to the first official Apache Software Foundation
Conference!!!   <http://ApacheCon.Com/>

_______________________________________________________________________________
Ryan Bloom                        	rbb@ntrnet.net
2121 Stonehenge Dr. Apt #3
Raleigh, NC 27615		Ryan Bloom -- thinker, adventurer, artist,
				     writer, but mostly, friend.
-------------------------------------------------------------------------------


Re: cvs commit: apache-2.0/src/lib/apr/file_io/win32 filestat.c

Posted by Bill Stoddard <st...@raleigh.ibm.com>.
Subject: Re: cvs commit: apache-2.0/src/lib/apr/file_io/win32 filestat.c


> On Tue, Feb 01, 2000 at 12:15:14AM -0000, stoddard@hyperreal.org wrote:
> >   +    if (ext && (!strcasecmp(ext,".exe") || !strcasecmp(ext,".com") ||
> >   +                !strcasecmp(ext,".bat") || !strcasecmp(ext,".cmd")))
{
> >   +        return TRUE;
>
> I'm not sure, but doesn't windows treat *.pif files in a similar way as
> *.bat? And what about *.lnk

I don't know. And I'm not sure it matters for Apache purposes.

Bill


RE: cvs commit: apache-2.0/src/lib/apr/file_io/win32 filestat.c

Posted by "William A. Rowe, Jr." <wr...@lnd.com>.
> On Behalf Of Martin Kraemer > Sent: Monday, January 31, 2000 6:32 PM
> 
> On Tue, Feb 01, 2000 at 12:15:14AM -0000, 
> stoddard@hyperreal.org wrote:
> >   +    if (ext && (!strcasecmp(ext,".exe") || 
> !strcasecmp(ext,".com") ||
> >   +                !strcasecmp(ext,".bat") || 
> !strcasecmp(ext,".cmd"))) {
> >   +        return TRUE;
> 
> I'm not sure, but doesn't windows treat *.pif files in a 
> similar way as
> *.bat? And what about *.lnk?
> I dislike windows, so bear with me if this is a stupid question.

Not stupid - and you are correct about .pif (although all four
have differences within the API in execution) - and .lnk files 
are relative pointers to any other file (executable or not).  

The only answer to .lnk would be to resolve the redirection 
immediately upon request and treat it as a Location: redirect, 
but then again if that redirected path is outside the 
<Directory> space... well what then?  A similar question occurs
for .pif.  If not carefully handled... then the user downloading
innocent.pif or innocent.lnk ---> C:\WINNT\SYSTEM32\FORMAT.COM ???

PIF exists to support old 286 code that wasn't built to execute
in Win32 (using XMS or EMS memory mapping schemes, etc).  Do we
want to expose the kernal to that sort of nightmare?