MSDfs Samba2.2.4 lower case ??

Kevin Wheatley hxpro at cinesite.co.uk
Wed May 8 09:35:01 GMT 2002


Shirish Kalele wrote:
> > and wondered why the strlower() call is
> > needed in msdfs/msdfs.c line 168, I need my redirects to contain mixed
> > case letters. It appears to work in my initial testing without it.
> The strlower() call is done because some clients (Win9X) send paths in all
> uppercase, and so you'd need to try out case-combinations of all the
> components of the path to figure out what the path is; a simple lstat with
> the pathname would not work. By doing this, we of course restrict link names
> and all intermediate directories to be all lowercase.

Which won't work for me, the links are the ouput of other programs
which means I can't changed them, that's why I wanted to do the VFS
link mangling my module does, perhaps a 'mdfs support brain dead
clients = No' flag could turn off the lowercase code, I noticed there
is another strlower() in junction_to_local_path().

> Simply removing strlower() won't do it. You could use unix_convert() to do
> this, and set a flag so that unix_convert() is not called a second time
> following RESOLVE_DFSPATH if the path is not a dfs link.

Ah, we're Win2K only here so that would explain why it worked in my
testing. I guess that means I'll have to work out what's really going
on inside samba then... oh well there goes my 'quick' fix :-)

Thanks

Kevin

-- 
| Kevin Wheatley              | These are the opinions of nobody   |
| Special Services (Projects) | and are not shared by my employers |
| Cinesite Digital Studios    |                                    |




More information about the samba-technical mailing list