[PATCH] trans2 querypathinfo alt name

Stefan (metze) Metzmacher metze at metzemix.de
Thu Jan 9 16:08:01 GMT 2003

Hi Jerry,

I noticed that if I'm using MS Access 97 on a NT4 machine I can't access to 
database files witch are in directories >12 chars, but if I do the same 
thing on an w2k or NT4 server is works.

I see that the respond to the query alt file name call send a mangle name 
in unicode with termination.

but the windows servers didn't send the termination

I also wonder why we set the LONG FILE NAMES are in use flag in the SMB 
HEADER flags2

this is also different to windows...

I attache a small patch and a view sniffs

Stefan "metze" Metzmacher <metze at metzemix.de>
-------------- next part --------------
diff -Npur --exclude=CVS --exclude=*.bak --exclude=*.o --exclude=*.po --exclude=.#* HEAD/source/smbd/trans2.c HEAD-fix/source/smbd/trans2.c
--- HEAD/source/smbd/trans2.c	Thu Dec  5 09:43:44 2002
+++ HEAD-fix/source/smbd/trans2.c	Thu Jan  9 17:04:50 2003
@@ -1794,7 +1794,9 @@ static int call_trans2qfilepathinfo(conn
 			if(!mangle_is_8_3(short_name, True)) {
-			len = srvstr_push(outbuf, pdata+4, short_name, -1, STR_TERMINATE|STR_UPPER);
+			len = srvstr_push(outbuf, pdata+4, short_name, -1, STR_UPPER);
 			data_size = 4 + len;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: msaccess-failed.cap
Type: application/octet-stream
Size: 1582 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20030109/b052d29c/msaccess-failed.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: msaccess-fine.cap
Type: application/octet-stream
Size: 1520 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20030109/b052d29c/msaccess-fine.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: msaccess-file-fine2.cap
Type: application/octet-stream
Size: 404 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20030109/b052d29c/msaccess-file-fine2.obj

More information about the samba-technical mailing list