From: Volker Lendecke Date: Wed, 31 Jan 2024 18:48:48 +0000 (+0100) Subject: smbd: Set fsp->fsp_flags.posix_open in openat_pathref_fsp_lcomp() X-Git-Tag: tdb-1.4.13~485 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=259517d7aec73280b7e02f3695f826561e76f82f;p=thirdparty%2Fsamba.git smbd: Set fsp->fsp_flags.posix_open in openat_pathref_fsp_lcomp() Not sure why this wasn't caught as a bug yet... Signed-off-by: Volker Lendecke Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/files.c b/source3/smbd/files.c index 28a0e0c0187..8e2a39941ce 100644 --- a/source3/smbd/files.c +++ b/source3/smbd/files.c @@ -1645,6 +1645,8 @@ NTSTATUS openat_pathref_fsp_lcomp(struct files_struct *dirfsp, } fsp->fsp_flags.is_directory = S_ISDIR(fsp->fsp_name->st.st_ex_mode); + fsp->fsp_flags.posix_open = + ((smb_fname_rel->flags & SMB_FILENAME_POSIX_PATH) != 0); fsp->file_id = vfs_file_id_from_sbuf(conn, &fsp->fsp_name->st); smb_fname_rel->st = fsp->fsp_name->st;