The Samba-Bugzilla – Bug 2749
all files have blank names
Last modified: 2005-09-29 08:46:37 UTC
Listing any directory in a share returns the correct number of entries, but all
the names are blank. The log at -d10 say a bunch of this:
get_lanman2_dir_entry:readdir on dirptr 0x10067320 now at offset 1
dos_mode_from_sbuf returning d
dos_mode returning d
get_lanman2_dir_entry found usr/sbin/ fname=
and a packet capture has blanks or zeros for all fields such as file name lengh,
allocation size, etc. The only thing that's non-zero is "File Attributes:
0x00000010" (it's reporting them all as directories?)
samba 3.0.14a cross-compiled from x86 to mipsel against current uclibc with gcc
3.4.3, running under a vendor-supplied linux 2.4.21 kernel.
but if I retrieve a file by name (smbclient '\\foo\tmp' -c 'get bar'), that does
Would you please do a few things for us:
1. We have fixed some bugs related to directory listings fairly recently. Would
you please verify that this bug still exist if you use the current code in SVN.
2. If the problem does still exist, please attach an ethereal or tcpdump packet
dump, in RAW, BINARY format, which will help us track down the problem.
3. What operating system (XP? win2k?, etc.) and file system type (FAT?, NTFS?)
are in use on the computer on which you are trying to get the directory listing?
Okay, this was a result of getting autoconf settings wrong for the cross-compile.
After mashing the config settings for a while, the problem is no longer.
I think a tip-off should have been all the "right shift count >= width of type"
errors during compile. (When correctly configured those don't happen.)