summaryrefslogtreecommitdiff
path: root/source3/locking
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2014-12-05 12:56:03 -0800
committerKarolin Seeger <kseeger@samba.org>2014-12-09 21:40:12 +0100
commit4cf99a2eba473a71ac7e73ad3e7675e4a7e015c6 (patch)
treead86a1c0793b5cc3a2050fd89d169d5568b54ee1 /source3/locking
parent636d10994156b8a799136207c7c65354a9a71dff (diff)
downloadsamba-4cf99a2eba473a71ac7e73ad3e7675e4a7e015c6.tar.gz
s3:locking: pass servicename_new to leases_db_rename()
Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> (cherry picked from commit 2cd9a5c3209e947a6e63ad019da869790d01d0aa)
Diffstat (limited to 'source3/locking')
-rw-r--r--source3/locking/leases_db.c1
-rw-r--r--source3/locking/leases_db.h1
-rw-r--r--source3/locking/locking.c1
3 files changed, 3 insertions, 0 deletions
diff --git a/source3/locking/leases_db.c b/source3/locking/leases_db.c
index 7e000aa0752..4cb38f0091e 100644
--- a/source3/locking/leases_db.c
+++ b/source3/locking/leases_db.c
@@ -389,6 +389,7 @@ NTSTATUS leases_db_parse(const struct GUID *client_guid,
NTSTATUS leases_db_rename(const struct GUID *client_guid,
const struct smb2_lease_key *lease_key,
const struct file_id *id,
+ const char *servicename_new,
const char *filename_new,
const char *stream_name_new)
{
diff --git a/source3/locking/leases_db.h b/source3/locking/leases_db.h
index 906a99bc610..f3988632b50 100644
--- a/source3/locking/leases_db.h
+++ b/source3/locking/leases_db.h
@@ -45,6 +45,7 @@ NTSTATUS leases_db_parse(const struct GUID *client_guid,
NTSTATUS leases_db_rename(const struct GUID *client_guid,
const struct smb2_lease_key *lease_key,
const struct file_id *id,
+ const char *servicepath_new,
const char *filename_new,
const char *stream_name_new);
#endif /* _LEASES_DB_H_ */
diff --git a/source3/locking/locking.c b/source3/locking/locking.c
index dd73f683af8..221d6ee8d6e 100644
--- a/source3/locking/locking.c
+++ b/source3/locking/locking.c
@@ -575,6 +575,7 @@ bool rename_share_filename(struct messaging_context *msg_ctx,
status = leases_db_rename(&l->client_guid,
&l->lease_key,
&id,
+ d->servicepath,
d->base_name,
d->stream_name);
if (!NT_STATUS_IS_OK(status)) {