]> source.dussan.org Git - nextcloud-server.git/commit
Fixed SMB rename function to overwrite target file
authorVincent Petry <pvince81@owncloud.com>
Fri, 22 Nov 2013 17:18:08 +0000 (18:18 +0100)
committerVincent Petry <pvince81@owncloud.com>
Mon, 25 Nov 2013 10:17:38 +0000 (11:17 +0100)
commit1b0c5e57e5e4042ebb4f0e5956330a908645b61a
tree63e897969fb9c9ad4af967bb98fcfd02670c1829
parentb82146eeee2c969a53dd42cebf06ecfd31a0e286
Fixed SMB rename function to overwrite target file

When uploading files through WebDAV, a part file is created and a rename
operation is performed with the expectation that the part file
overwrites an existing file, if any.

This fix makes the SMB external storage delete the target file before
renaming, as smbclient doesn't support overwrite on move/rename.

Fixes #5348
apps/files_external/3rdparty/smb4php/smb.php
apps/files_external/lib/streamwrapper.php