Bug 11334 - SMBC_rename() api in libsmbclient library is overwriting the already existing file / folder
Summary: SMBC_rename() api in libsmbclient library is overwriting the already existing...
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: libsmbclient (show other bugs)
Version: 4.1.12
Hardware: All All
: P5 major (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-16 05:25 UTC by hargagan
Modified: 2023-04-12 17:56 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description hargagan 2015-06-16 05:25:07 UTC
SMBC_rename() is the api exposed by libsmbclient library to move the file or folder from source to target. But if the file / folder already exists on the target, then the target location is deleted by the library and new source is copied onto the target location.

This is a problem as end user doesn't have the control to not delete the file.
Comment 1 hargagan 2015-06-17 13:35:14 UTC
Any update on this please.
Comment 2 Bastien Nocera 2023-04-12 17:56:53 UTC
This issue was mentioned again in a review for GNOME's user-space SMB client implementation:
https://gitlab.gnome.org/GNOME/gvfs/-/merge_requests/163