Bug 4377 - Cannot change case of existing file names
Cannot change case of existing file names
Product: Samba 3.0
Classification: Unclassified
Component: File Services
x86 Linux
: P3 normal
: none
Assigned To: Jeremy Allison
Samba QA Contact
Depends on:
  Show dependency treegraph
Reported: 2007-02-07 13:05 UTC by Jordan Russell
Modified: 2007-02-07 16:19 UTC (History)
0 users

See Also:

Patch for 3.0.25 (2.70 KB, patch)
2007-02-07 16:18 UTC, Jeremy Allison
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jordan Russell 2007-02-07 13:05:25 UTC
In recent versions of Samba, attempting to rename a file to a new name that differs only in case appears to have no effect.


1. On a Windows (2000) system, map X: to a Samba share.

2. Open cmd.exe and issue the following commands. (Note: You can also see this in other programs, like Windows Explorer.)

X:\tmp>echo . > FILE.txt

02/05/2007  08:21p                   4 FILE.txt

X:\tmp>ren FILE.txt file.txt

02/05/2007  08:21p                   4 FILE.txt

Expected result:
The last "dir" command should show "file.txt" as the file name.

I believe this to be a bug in the current version of Samba because the problem does not occur on:
- older versions of Samba (I'm not sure exactly when it quit working)
- local Windows file systems (try repeating the above test on C:\)
- remote shares hosted by Windows servers
Comment 1 Jeremy Allison 2007-02-07 16:18:47 UTC
Created attachment 2269 [details]
Patch for 3.0.25

This is actually an interesting case as it exposed bad code in our DFS redirect module (that was where the bug was introduced).
With some effort this could be ported to 3.0.24 but I'm currently just going to fix it for 3.0.25.
Comment 2 Jeremy Allison 2007-02-07 16:19:01 UTC
Fixed for 3.0.25.