bin/111004: Renaming the case of a filename on a smbfs mount using
mv deletes the file
Net147 at hotmail.com
Thu Mar 29 09:40:02 UTC 2007
>Synopsis: Renaming the case of a filename on a smbfs mount using mv deletes the file
>Arrival-Date: Thu Mar 29 09:40:01 GMT 2007
>Originator: Jonathan Liu
FreeBSD freebsd 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan 12 10:40:27 UTC 2007 root at dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
Renaming the case of a filename on a smbfs mount using mv deletes the file. This seems to occur when a Windows SMB share is being mounted when the computer the share is being hosted on uses case insensitive file naming (which is default on most Windows systems).
Change to an smbfs mounted directory and rename the case of a filename.
Example: rename TEST.MP3 to test.mp3 using 'mv TEST.MP3 test.mp3').
This gives the following output:
'mv: rename TEST.MP3 to test.mp3: No such file or directory'
Listing the directory using ls shows that the file no longer exists.
More information about the freebsd-bugs