s3/smbd: simplify defer_open()
commitad3217c9d9a73dbf23a1f01fd5ded51f32eceee6
authorRalph Boehme <slow@samba.org>
Tue, 7 Mar 2017 13:37:54 +0000 (7 14:37 +0100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 14 Mar 2017 11:49:24 +0000 (14 12:49 +0100)
tree4aeaf3f27bd4ac6599f90a53dff94163b1abc398
parenta8db18aa97c5af73c1df5559e8c233469f033c7f
s3/smbd: simplify defer_open()

Add a helper function deferred_open_record_create() that creates a
deferred_open_record and let all callers pass all needed arguments
individually.

While we're at it, enhance the debug message in defer_open() to print
all variables.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=7537

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit b17ff9b181b7b9730d32534e720c45faabfa6799)
source3/smbd/open.c