s3:smbd: ensure to update the File-ID in struct smb_filename
commitd47f8ca1a769571dae73081cda6a01812c1a256c
authorRalph Boehme <slow@samba.org>
Fri, 30 Aug 2019 12:48:40 +0000 (30 14:48 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 10 Sep 2019 21:13:09 +0000 (10 21:13 +0000)
treecd746b0a251578c8ed464ca11ba6e10787dea9c3
parent6dfeecf345c0a009fff6b233241156eff3160467
s3:smbd: ensure to update the File-ID in struct smb_filename

Initialize the File-ID in fsp->fsp_name->st, any subsequent metadata fetch on
this file-handle needs this, eg QFID SMB2 Create-Context or GETINFO SMB
requests.

It would be nice if SMB_VFS_SET_DOS_ATTRIBUTE() would do this, unfortunately it
gets a const struct smb_filename.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14121

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit 3483b75fed8985bd2968bbf8c85985107115fba8)
source3/smbd/open.c