Bug 210256 - mv may delete files on case-preserving but case-insensitive filesystems
Summary: mv may delete files on case-preserving but case-insensitive filesystems
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 10.1-RELEASE
Hardware: i386 Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-13 15:06 UTC by Alexander Klein
Modified: 2016-06-13 15:07 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Klein 2016-06-13 15:06:43 UTC
When renaming files on a filesystem that's both, case-preserving and case-insensitive, the file may in fact be deleted when only the case of a few letters is changed; see the example below for what happens on a SAMBA-share.

% touch abc    

% ls -l abc Abc
-rw-rw-rw-  1 nobody  nobody  0 13 Jun 17:04 Abc
-rw-rw-rw-  1 nobody  nobody  0 13 Jun 17:04 abc

% mv abc Abc

mv: rename abc to Abc: No such file or directory

% ls -l abc Abc
ls: Abc: No such file or directory
ls: abc: No such file or directory