← Back to team overview

desktop-packages team mailing list archive

[Bug 382117] Re: Renaming a file through Samba overwrites existing one

 

** Changed in: samba
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gvfs in Ubuntu.
https://bugs.launchpad.net/bugs/382117

Title:
  Renaming a file through Samba overwrites existing one

Status in Samba:
  Fix Released
Status in “gvfs” package in Ubuntu:
  Triaged
Status in “samba” package in Ubuntu:
  Invalid

Bug description:
  Binary package hint: samba

  Using Ubuntu "Jaunty" 9.04 with Samba 2:3.3.2-1ubuntu3.

  I have a local server with directories shared through Samba and access them from another computer using Nautilus. When renaming a file to a name that already exists in the current dir, the original file is replaced without warning instead of having an error message like "can't rename: file already exists".
  E.g.:
  - access a Samba share through Nautilus
  - create two blank files (blank_file_1 & blank_file_2)
  - rename blank_file_2 to "blank_file_1"
  - blank_file_1 is lost forever and now replaced by the content of blank_file_2

  The problem doesn't happen with a remote directory mounted as sftp (error message saying that the file already exists) but does happen with the "mv" command in command line (in local dir or through ssh) so I'm not sure if the problem is related to Samba or mv or both.
  Is mv supposed to overwrite existing files without warning or errors ?

To manage notifications about this bug go to:
https://bugs.launchpad.net/samba/+bug/382117/+subscriptions