smbd: prepare DH disconnect for AT-names
authorRalph Boehme <slow@samba.org>
Sun, 17 May 2020 06:05:47 +0000 (08:05 +0200)
committerJeremy Allison <jra@samba.org>
Thu, 21 May 2020 22:01:25 +0000 (22:01 +0000)
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 <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu May 21 22:01:25 UTC 2020 on sn-devel-184

source3/smbd/durable.c

index b71e06819d77fe0ab1a1d1b3f0091e6117c443bb..2265d7c51025f94c0fb1a06539cb55225ac54089 100644 (file)
@@ -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 =