s3/smbd: simplify defer_open()
authorRalph Boehme <slow@samba.org>
Tue, 7 Mar 2017 13:37:54 +0000 (14:37 +0100)
committerJeremy Allison <jra@samba.org>
Fri, 10 Mar 2017 02:28:25 +0000 (03:28 +0100)
commitb17ff9b181b7b9730d32534e720c45faabfa6799
tree63b25bd84d411935108e92450a6e44695c1af3d7
parent8580adc1d968304b69237f289d13950972394b48
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>
source3/smbd/open.c