]> git.ipfire.org Git - thirdparty/samba.git/commit
vfs_fruit: fix fruit_rename() for the fruit:resource!=file case
authorRalph Boehme <slow@samba.org>
Fri, 2 Dec 2016 07:47:36 +0000 (08:47 +0100)
committerUri Simchoni <uri@samba.org>
Wed, 1 Mar 2017 23:32:21 +0000 (00:32 +0100)
commit8a9d0c541875d06254dc3a3039b20c8acac328ed
tree942d42e1f24086d039886812c953f9e30748dc2b
parent604bd6bf80285db2e52266708d55215f07503c73
vfs_fruit: fix fruit_rename() for the fruit:resource!=file case

o fix the config check, we must only run following code for the
  fruit:resource=file

o properly call SMB_VFS_NEXT_RENAME() instead diretly calling rename()

o bail out if we get an invalid stat

Otherwise, no change in behaviour.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12427

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Uri Simchoni <uri@samba.org>
source3/modules/vfs_fruit.c