From: Ralph Boehme Date: Sun, 17 May 2020 06:05:47 +0000 (+0200) Subject: smbd: prepare DH disconnect for AT-names X-Git-Tag: ldb-2.2.0~363 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c68133d41c368c52cd5ac3c34dbe888ceccd7619;p=thirdparty%2Fsamba.git smbd: prepare DH disconnect for AT-names This ensure cookie.base_name is set to the full path to deal with fsp->fsp_name being an atname in the future. Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Thu May 21 22:01:25 UTC 2020 on sn-devel-184 --- diff --git a/source3/smbd/durable.c b/source3/smbd/durable.c index b71e06819d7..2265d7c5102 100644 --- a/source3/smbd/durable.c +++ b/source3/smbd/durable.c @@ -251,7 +251,7 @@ NTSTATUS vfs_default_durable_disconnect(struct files_struct *fsp, cookie.allow_reconnect = true; cookie.id = fsp->file_id; cookie.servicepath = conn->connectpath; - cookie.base_name = fsp->fsp_name->base_name; + cookie.base_name = fsp_str_dbg(fsp); cookie.initial_allocation_size = fsp->initial_allocation_size; cookie.position_information = fsp->fh->position_information; cookie.update_write_time_triggered =