]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Fully fill in fsp in openat_pathref_fsp_nosymlink_internal()
authorVolker Lendecke <vl@samba.org>
Tue, 16 May 2023 09:24:35 +0000 (11:24 +0200)
committerVolker Lendecke <vl@samba.org>
Fri, 30 Jun 2023 10:42:36 +0000 (10:42 +0000)
Prepare for allowing openat_pathref_fsp_nosymlink() to open real files
in the next patches.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/files.c

index aa6c66a3d81b08356af86d858e104aaa1d164ab1..8f81db659c9d975878bd267751aceda47b9ebb66 100644 (file)
@@ -840,6 +840,11 @@ openat_pathref_fsp_nosymlink_internal(TALLOC_CTX *mem_ctx,
                DBG_DEBUG("fsp_new() failed: %s\n", nt_errstr(status));
                goto fail;
        }
+
+       GetTimeOfDay(&fsp->open_time);
+       fsp_set_gen_id(fsp);
+       ZERO_STRUCT(conn->sconn->fsp_fi_cache);
+
        fsp->fsp_name = &full_fname;
 
 #ifdef O_PATH