s3: smbd: Reformat users of smbd_check_access_rights().
authorJeremy Allison <jra@samba.org>
Thu, 30 Apr 2020 22:48:12 +0000 (15:48 -0700)
committerRalph Boehme <slow@samba.org>
Mon, 4 May 2020 13:55:33 +0000 (13:55 +0000)
Make new parameter addition clearer.

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

index 2c4efa0fcff8f1947943d937a10f8a739eda9571..910da9d1ed0a9e9ff516e6b597ae91a36f72ea85 100644 (file)
@@ -535,8 +535,10 @@ NTSTATUS set_ea_dos_attribute(connection_struct *conn,
                        return NT_STATUS_ACCESS_DENIED;
                }
 
-               status = smbd_check_access_rights(conn, smb_fname, false,
-                                                 FILE_WRITE_ATTRIBUTES);
+               status = smbd_check_access_rights(conn,
+                                       smb_fname,
+                                       false,
+                                       FILE_WRITE_ATTRIBUTES);
                if (NT_STATUS_IS_OK(status)) {
                        set_dosmode_ok = true;
                }
index 6b5224b62efc8fa149f29eea1a4ac783cd224616..aa84be991596595963fb8f2f6e37fafa5616a4ca 100644 (file)
@@ -1553,8 +1553,10 @@ void reply_setatr(struct smb_request *req)
                else
                        mode &= ~FILE_ATTRIBUTE_DIRECTORY;
 
-               status = smbd_check_access_rights(
-                       conn, smb_fname, false, FILE_WRITE_ATTRIBUTES);
+               status = smbd_check_access_rights(conn,
+                                       smb_fname,
+                                       false,
+                                       FILE_WRITE_ATTRIBUTES);
                if (!NT_STATUS_IS_OK(status)) {
                        reply_nterror(req, status);
                        goto out;