s3: smbd: Reformat callers of check_access().
authorJeremy Allison <jra@samba.org>
Wed, 29 Apr 2020 22:28:27 +0000 (15:28 -0700)
committerRalph Boehme <slow@samba.org>
Thu, 30 Apr 2020 07:33:41 +0000 (07:33 +0000)
Makes it easier to see when we add the dirfsp
parameter.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/trans2.c

index b7b02b55f61550d831a2f733bb93b6e7d8c0e294..07cbc8388899c63d752d431ea7228b26014b93f8 100644 (file)
@@ -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;