Package: samba Version: 3.0.24-2 Severity: normal If there is a share whose name is the same as the name of a directory on that share (it seems that this is not case sensitive), when you access the directory weird things happen, like finding directories that don't exist.
I have tested this with latest 2.6 kernel cifs up to 2.6.20.1 running etch with the samba servers running etch and sid, this doesn't happen if the server is a sarge based samba, and it only happens with cifs, not with smbfs, so maybe it is not something wrong with samba but with the cifs filesystem driver, with the old samba on sarge it doesn't happen, so I don't know if it is samba's or cifs client's fault. I think the best way to explain the weird behaviour here is by an example: I create a share on the samba server like this: [deb] comment = buggy stuff writable = no locking = no path = /bug public = yes browseable = no Inside the share I create a directory called deb, it could also be called DEB and things would also work weird, even though I believe behaviour is a little bit different. Inside the deb directory I create a file named other, that's it. No other files or directories exist inside the share's directory. ace:~# mount.cifs //pul/deb /mnt -o passwd=d ace:~# ls -lR /mnt/ /mnt/: total 0 drwxr-xr-x 2 root root 0 2007-02-26 21:31 deb /mnt/deb: total 0 -rw-r--r-- 1 root root 0 2007-02-26 21:00 other ace:~# ls -lisa /mnt/deb/deb/deb/ total 0 60094 0 drwxr-xr-x 2 root root 0 2007-02-26 21:31 . 60089 0 drwxr-xr-x 3 root root 0 2007-02-26 21:32 .. 60123 0 -rw-r--r-- 1 root root 0 2007-02-26 21:00 other ace:~# ls -lisa /mnt/deb/deb/ total 0 60089 0 drwxr-xr-x 3 root root 0 2007-02-26 21:32 . 60088 0 drwxr-xr-x 2 root root 0 2007-02-26 21:31 .. 60094 0 drwxr-xr-x 2 root root 0 2007-02-26 21:31 deb ace:~# ls -lisa /mnt/deb/ total 0 60088 0 drwxr-xr-x 2 root root 0 2007-02-26 21:31 . 2 0 drwxr-xr-x 3 root root 0 2007-02-26 21:32 .. 60302 0 -rw-r--r-- 1 root root 0 2007-02-26 21:00 other ace:~# if [ -d /mnt/deb/deb/deb ];then echo He thinks its a dir;fi He thinks its a dir ace:~# if [ -d /mnt/deb/deb ];then echo He thinks its a dir;fi He thinks its a dir ace:~# if [ -d /mnt/deb ];then echo He thinks its a dir;fi He thinks its a dir Don't know what else to add, if more info is needed just tell me and I'll try to gather it. Regards! -- System Information: Debian Release: 4.0 APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/dash Kernel: Linux 2.6.20 Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15) Versions of packages samba depends on: ii debconf 1.5.11 Debian configuration management sy ii libacl1 2.2.42-1 Access control list shared library ii libattr1 1:2.4.32-1.1 Extended attribute shared library ii libc6 2.3.6.ds1-13 GNU C Library: Shared libraries ii libcomer 1.39+1.40-WIP-2006.11.14+dfsg-1 common error description library ii libcupsy 1.2.7-4 Common UNIX Printing System(tm) - ii libgnutl 1.4.4-3 the GNU TLS library - runtime libr ii libkrb53 1.4.4-7 MIT Kerberos runtime libraries ii libldap2 2.1.30-13.3 OpenLDAP libraries ii libpam-m 0.79-4 Pluggable Authentication Modules f ii libpam-r 0.79-4 Runtime support for the PAM librar ii libpam0g 0.79-4 Pluggable Authentication Modules l ii libpopt0 1.10-3 lib for parsing cmdline parameters ii logrotat 3.7.1-3 Log rotation utility ii lsb-base 3.1-23 Linux Standard Base 3.1 init scrip ii netbase 4.29 Basic TCP/IP networking system ii procps 1:3.2.7-3 /proc file system utilities ii samba-co 3.0.24-2 Samba common files used by both th ii zlib1g 1:1.2.3-13 compression library - runtime Versions of packages samba recommends: pn smbldap-tools <none> (no description available) -- debconf information: samba/nmbd_from_inetd: * samba/run_mode: daemons samba/log_files_moved: samba/tdbsam: false * samba/generate_smbpasswd: false -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]