From: Noel Power Date: Thu, 10 Jun 2021 09:04:39 +0000 (+0100) Subject: s3/smbd: dos_mode_post: remove smb_fname param X-Git-Tag: tevent-0.11.0~389 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=77f15f58349b53ad21802a2e4c61fdc57c5fc7fc;p=thirdparty%2Fsamba.git s3/smbd: dos_mode_post: remove smb_fname param Signed-off-by: Noel Power Reviewed-by: Jeremy Allison fs_capabilities & FILE_FILE_COMPRESSION) { + if (fsp->conn->fs_capabilities & FILE_FILE_COMPRESSION) { bool compressed = false; - status = dos_mode_check_compressed(conn, fsp, smb_fname, + status = dos_mode_check_compressed(fsp->conn, fsp, smb_fname, &compressed); if (NT_STATUS_IS_OK(status) && compressed) { dosmode |= FILE_ATTRIBUTE_COMPRESSED; } } - dosmode |= dos_mode_from_name(conn, smb_fname, dosmode); + dosmode |= dos_mode_from_name(fsp->conn, smb_fname, dosmode); if (S_ISDIR(smb_fname->st.st_ex_mode)) { dosmode |= FILE_ATTRIBUTE_DIRECTORY; @@ -778,7 +777,7 @@ uint32_t fdos_mode(struct files_struct *fsp) } } - result = dos_mode_post(result, fsp->conn, fsp, NULL, __func__); + result = dos_mode_post(result, fsp, __func__); return result; } @@ -890,9 +889,7 @@ static void dos_mode_at_vfs_get_dosmode_done(struct tevent_req *subreq) } if (NT_STATUS_IS_OK(status)) { state->dosmode = dos_mode_post(state->dosmode, - state->smb_fname->fsp->conn, state->smb_fname->fsp, - NULL, __func__); tevent_req_done(req); return;