Bug 3039 - empty directories with files/dirs which name begins with a diacritic letter
Summary: empty directories with files/dirs which name begins with a diacritic letter
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: smbmount (unmaintained) (show other bugs)
Version: 3.0.14a
Hardware: All FreeBSD
: P3 major
Target Milestone: none
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
Depends on:
Reported: 2005-08-25 03:19 UTC by Roman Divacky
Modified: 2006-04-09 11:24 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Roman Divacky 2005-08-25 03:19:23 UTC
when I create a directory which contains file or directory which name begins
with a diacritic letter such directory is empty. diacritic letters within the
name are ok

to reproduce:
create a dir a inside that dir create a file with such a name (I used
iso-8859-2) and mount that directory on another machine using mount_smbfs. that
directory will be emptu (if there were other files they are not displayed either)

this behaviour was seen on fbsd and linux

I can provide tar with such directory if necessary
Comment 1 Gerald (Jerry) Carter (dead mail address) 2005-08-25 05:23:36 UTC
Can you reproduce this same behavior with smbclient?  We really have 
no relation to the smbfs code on FreeBSD.  If you can reproduce it 
with smbclient, then also please test agains 3.0.20.
Comment 2 Roman Divacky 2005-08-26 02:05:47 UTC
yes, I can reproduce it using smbclient - here is the output:

smb: \botani\test\> ls
  .                                   D        0  Fri Aug 26 08:35:13 2005
  ..                                  D        0  Fri Aug 26 08:35:02 2005

                33899 blocks of size 1048576. 24656 blocks available
smb: \botani\test\>

kasandra ~$ ls /home/Data\ Oddeleni/botani/test/
/home/Data Oddeleni/botani/test:
kasandra ~$
Comment 3 Gerald (Jerry) Carter (dead mail address) 2005-08-26 07:59:25 UTC
ok.  That's what we needed to know.  Could you upload
a tar of the directory test case?  ALso please attach 
your smb.conf. 

And if you could try to reproduce this against 3.0.20,
that would be good.

Timur, is this a possible iconv issue on FreeBSD?  Or 
maybe just with the iconv detection which should be fixed in 3.0.20?
Comment 4 Roman Divacky 2005-08-26 08:18:40 UTC
here it is:


I'll try 3.0.20 as soon as possible

btw: a friend of mine reported the same problem between linux (both server and
client) machines - so this is not isolated to FreeBSD
Comment 5 Volker Lendecke 2006-04-09 11:24:03 UTC
Just tried it:

smb: \test\> dir
  .                                   D        0  Fri Aug 26 08:35:13 2005
  ..                                  D        0  Sun Apr  9 18:19:48 2006
  ÅeÅicha.doc                        19456  Fri Aug 26 08:27:28 2005

                34539 blocks of size 2097152. 2945 blocks available

In your smb.conf you have 'client code page' and 'character set' set. These options do not apply anymore to Samba 3.0.

When displaying the file in Windows, I don't get correct characters. The file name seems to look like UTF-8 encoded, but this seems incorrect UTF-8.

I'm closing this as 'worksforme'. If you still have the problem with 3.0.22, please re-open the bug and send a debug level 10 log of smbd when smbclient is doing the 'dir' that does not show the file.