From: Jeremy Allison Date: Wed, 29 Apr 2020 22:28:27 +0000 (-0700) Subject: s3: smbd: Reformat callers of check_access(). X-Git-Tag: ldb-2.2.0~793 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc5b49b80a39d8c8b451b46d6db63a3bf858b1c5;p=thirdparty%2Fsamba.git s3: smbd: Reformat callers of check_access(). Makes it easier to see when we add the dirfsp parameter. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index b7b02b55f61..07cbc838889 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -816,7 +816,9 @@ NTSTATUS set_ea(connection_struct *conn, files_struct *fsp, if (fsp != NULL) { status = check_access_fsp(fsp, FILE_WRITE_EA); } else { - status = check_access(conn, smb_fname, FILE_WRITE_EA); + status = check_access(conn, + smb_fname, + FILE_WRITE_EA); } if (!NT_STATUS_IS_OK(status)) { return status; @@ -7833,7 +7835,9 @@ static NTSTATUS smb_set_file_basic_info(connection_struct *conn, if (fsp != NULL) { status = check_access_fsp(fsp, FILE_WRITE_ATTRIBUTES); } else { - status = check_access(conn, smb_fname, FILE_WRITE_ATTRIBUTES); + status = check_access(conn, + smb_fname, + FILE_WRITE_ATTRIBUTES); } if (!NT_STATUS_IS_OK(status)) { return status; @@ -7904,7 +7908,9 @@ static NTSTATUS smb_set_info_standard(connection_struct *conn, if (fsp != NULL) { status = check_access_fsp(fsp, FILE_WRITE_ATTRIBUTES); } else { - status = check_access(conn, smb_fname, FILE_WRITE_ATTRIBUTES); + status = check_access(conn, + smb_fname, + FILE_WRITE_ATTRIBUTES); } if (!NT_STATUS_IS_OK(status)) { return status;