shiro at miraclelinux.com
Thu Mar 11 08:40:12 GMT 2004
Jeremy Allison wrote:
> On Wed, Mar 10, 2004 at 01:25:00PM +0900, Shiro Yamada wrote:
>>I've updated the source code from the CVS server, but the bug still seems
>>to exist. Attatched is the files which reproduce the situation.
>>The CP932 file is the problematic one, as its name <0x95><0x5C>.txt
>>contains <0x5C> which is the equivalent of '\\'. The EUCJP-MS equivalent
>>is working fine, as its name <0xC9><0xBD>.txt does not relate to this bug.
>>I built Samba with the default options, apart from the "prefix" value
>>which I believe has nothing to do with this problem.
> Found the problem. We're being hoist by our own petard :-) with the
> "sloppy" convert_string() calls allowing bad conversions (added to
> help people with broken iconv implementations :-). We need to check
> errno to catch bad conversions, not check the return....
I'm glad to say that it's back and working again.
However, I've discovered further problem that some directory with length
128 byte can not be referred from clients. They can be made and deleted
without problems, and not all the directory with 128 bytes have this problem.
Apparantly there is a bug in smbd/reply.c:chk_path_syntax(), but I haven't
managed to track down the bug yet...
I have attatched the corresponding files for your reference.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 34200 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20040311/a28979c6/refdir128.tar.bin
More information about the samba-technical