httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Behlendorf <br...@organic.com>
Subject Re: Spaces in Win32 executable names
Date Fri, 22 Aug 1997 21:48:41 GMT
At 09:33 AM 8/22/97 -0700, Dean Gaudet wrote:
>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.

This looks really good to me.  Any reason this isn't deterministic, Ben?

	Brian


--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--
"Why not?" - TL           brian@organic.com - hyperreal.org - apache.org

Mime
View raw message