Subject: kern/31318: smbfs: problems with files and dirs of the same name
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <juan@xtrarom.org>
List: netbsd-bugs
Date: 09/15/2005 06:26:00
>Number:         31318
>Category:       kern
>Synopsis:       smbfs: problems with files and dirs of the same name
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 15 06:26:00 +0000 2005
>Originator:     Juan RP
>Release:        NetBSD 3.99.8
>Organization:
Possibly maybe
>Environment:
System: NetBSD Nocturno 3.99.8 NetBSD 3.99.8 (Nocturno) #126: Thu Sep 15 06:59:08 CEST 2005 juan@Nocturno:/home/juan/build/obj/sys/arch/i386/compile/Nocturno i386
Architecture: i386
Machine: i386
>Description:

[juan@Nocturno][~]> mount|grep smbfs
//GUEST@BJORK/FAT_STORAGE on /mnt/bjork_storage type smbfs
[juan@Nocturno][~]>

[juan@Nocturno][~]> sudo touch /mnt/bjork_storage/test/foo
[juan@Nocturno][~]> sudo ls -l /mnt/bjork_storage/test 
total 0
-rwxr-xr-x  1 root  wheel  0 Sep 15 08:22 foo
[juan@Nocturno][~]> sudo rm /mnt/bjork_storage/test/foo 
[juan@Nocturno][~]> sudo mkdir /mnt/bjork_storage/test/foo
[juan@Nocturno][~]> sudo ls -l /mnt/bjork_storage/test    
total 0
-rwxr-xr-x  1 root  wheel  0 Sep 15 08:22 foo
[juan@Nocturno][~]>

[juan@Nocturno][~]> sudo rm /mnt/bjork_storage/test/foo 
rm: /mnt/bjork_storage/test/foo: Permission denied
[juan@Nocturno][~]> sudo rmdir /mnt/bjork_storage/test/foo
rmdir: /mnt/bjork_storage/test/foo: Not a directory
[juan@Nocturno][~]>

>How-To-Repeat:
>Fix:
	http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/fs/smbfs/smbfs_node.c.diff?r1=1.18&r2=1.19