]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3/smbd: use correct access in get_file_handle_for_metadata
authorRalph Boehme <slow@samba.org>
Tue, 29 Aug 2017 14:08:06 +0000 (16:08 +0200)
committerKarolin Seeger <kseeger@samba.org>
Wed, 25 Oct 2017 06:43:01 +0000 (08:43 +0200)
All we want here is FILE_WRITE_ATTRIBUTES, not FILE_WRITE_DATA.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=12995

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Tue Oct 17 11:48:09 CEST 2017 on sn-devel-144

(cherry picked from commit a3cc2fedab37134edd401b88087e20881c4ea18f)

source3/smbd/dosmode.c

index 7a274e6960256fd79a5a8e921c569cd008853935..ef18ef58d0d4974c6c6001abc35b862e3f67e93b 100644 (file)
@@ -1167,7 +1167,7 @@ static NTSTATUS get_file_handle_for_metadata(connection_struct *conn,
                NULL,                                   /* req */
                0,                                      /* root_dir_fid */
                smb_fname_cp,                           /* fname */
-               FILE_WRITE_DATA,                        /* access_mask */
+               FILE_WRITE_ATTRIBUTES,                  /* access_mask */
                (FILE_SHARE_READ | FILE_SHARE_WRITE |   /* share_access */
                        FILE_SHARE_DELETE),
                FILE_OPEN,                              /* create_disposition*/