summaryrefslogtreecommitdiff
path: root/source3/libsmb/proto.h
diff options
context:
space:
mode:
authorUri Simchoni <uri@samba.org>2017-03-26 09:14:43 +0300
committerJeremy Allison <jra@samba.org>2017-03-28 17:45:19 +0200
commit057aa39e6abea241a3785458460eaef8c30f8659 (patch)
treeea105b67a0c31d143724e1bcd2b90bb493e0f5ed /source3/libsmb/proto.h
parent3154c4cb701950d777766bbef1410182bb2569c4 (diff)
downloadsamba-057aa39e6abea241a3785458460eaef8c30f8659.tar.gz
s3-libsmb: fail rename and replace inside cifs variant
Another refactoring step - fail request to rename and replace existing file from within the CIFS version, allowing the soon-to-be-added SMB version to succeed. Signed-off-by: Uri Simchoni <uri@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/libsmb/proto.h')
-rw-r--r--source3/libsmb/proto.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/source3/libsmb/proto.h b/source3/libsmb/proto.h
index 57a45e3f363..b453733fbdd 100644
--- a/source3/libsmb/proto.h
+++ b/source3/libsmb/proto.h
@@ -325,10 +325,11 @@ NTSTATUS cli_posix_chown(struct cli_state *cli,
uid_t uid,
gid_t gid);
struct tevent_req *cli_rename_send(TALLOC_CTX *mem_ctx,
- struct tevent_context *ev,
- struct cli_state *cli,
- const char *fname_src,
- const char *fname_dst);
+ struct tevent_context *ev,
+ struct cli_state *cli,
+ const char *fname_src,
+ const char *fname_dst,
+ bool replace);
NTSTATUS cli_rename_recv(struct tevent_req *req);
NTSTATUS cli_rename(struct cli_state *cli,
const char *fname_src,