s3: libsmb: add replace support to cli_rename()
authorUri Simchoni <uri@samba.org>
Tue, 21 Mar 2017 21:13:07 +0000 (23:13 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 28 Mar 2017 15:45:19 +0000 (17:45 +0200)
commit200dbca238772b64e7c055d82d985045f92f6bcb
treee3e5a21fed08cfdd1d89d88898199152348e13de
parenta67802fad505738a10f3c73392db9e6235f13b62
s3: libsmb: add replace support to cli_rename()

Adds support for replacing the destination file at
the higher-level cli_rename(). This is actually supported
only by SMB2, and fails with invalid parameter with SMB1.

Signed-off-by: Uri Simchoni <uri@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/client/client.c
source3/libsmb/clifile.c
source3/libsmb/libsmb_dir.c
source3/libsmb/proto.h
source3/torture/nbio.c
source3/torture/torture.c