httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <dgau...@arctic.org>
Subject Re: Spaces in Win32 executable names
Date Fri, 22 Aug 1997 16:33:48 GMT
Apply this to each component during directory_walk:

    if (name is not 8.3) {
	it's fine, continue on
    } else if (name does not contain ~) {
	it's fine, continue on
    } else {
	perform a short -> long mapping on this component
	if (they're different) {
	    return BAD_REQUEST;
	}
    }

Make that a function.  Because you'll need it in sub_req_lookup_file()s
simple case as well.

This avoids extra system call overhead except when it's really required.
It's possible to have shortnames without ~ but Windows never generates
them, so the user gets what they're asking for if they do silly things
like that.

To solve the longname for CGI problem you'll need to rewrite spawn and
call the windows primitives yourself.  While it doesn't have an argument
vector, it certainly has an executable name parameter ... and it sounds
like the microsoft libc spawn sucks.

Dean


Mime
View raw message