Bug 11706 - Wrong message "mv 'file' and 'dir/file' are the same file"
Summary: Wrong message "mv 'file' and 'dir/file' are the same file"
Status: NEEDINFO
Alias: None
Product: Samba 4.0
Classification: Unclassified
Component: File services (show other bugs)
Version: unspecified
Hardware: All Linux
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-01 18:56 UTC by stefan.taubenberger
Modified: 2016-02-04 17:48 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 stefan.taubenberger 2016-02-01 18:56:43 UTC
Hi,

this is my first bug report, so I'm not quite sure whether I'm right here.

My samba version is samba-3.6.3-0.58.1 with SLES 11 so less then 4.0.

But the behaviour might still be the same. At least I couldn't find a matching bug report or fix.

We mount a windows share with
mount -t cifs -o user=...,password=... <server>:<share> /tmp/demo

Commands on linux side:

cd /tmp/demo/
mkdir dir-test
ls > file-test
mv file-test dir-test

On windows side, e.g. the explorer, move file "file-test" up to directory "demo".

On linux side again:
"ls -l" shows "file-test" und "dir-test" as expected.
"ls -l dir-test" shown an empty directory also as expected.

But this is the unexpected and unwanted behaviour (or am I wrong?):
"mv file-test dir-test" leads to error message
"mv: `file-test' and `dir-test' are the same file" and no movement at all.
Comment 1 stefan.taubenberger 2016-02-01 19:01:18 UTC
Sorry, I put the wrong error message at the end of the description.
Correct is: "mv: 'file-test' and 'dir-test/file-test' are the same file" and no movement at all.
Comment 2 Jeremy Allison 2016-02-04 17:48:12 UTC
Please try and reproduce against the latest version of Samba (4.3.x). 3.6.x is not maintained by the Samba Team anymore.