vfs_shadow_copy2: Preserve all open flags assuming ROFS
authorAnoop C S <anoopcs@samba.org>
Thu, 12 Nov 2020 14:57:24 +0000 (20:27 +0530)
committerKarolin Seeger <kseeger@samba.org>
Thu, 19 Nov 2020 14:09:43 +0000 (14:09 +0000)
commitb3665f70109b634564974de966d255807c0547f0
tree7236767df49b9a7a9af3bdb50d6a3eb27860a9e5
parent58eaf85bd924f4f9264d677486c0122a5a2c9f9f
vfs_shadow_copy2: Preserve all open flags assuming ROFS

Instead of replacing open flags with just O_RDONLY, filter out all those
flags unrelated to a Read Only File System

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14573

Signed-off-by: Anoop C S <anoopcs@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Thu Nov 12 17:23:19 UTC 2020 on sn-devel-184

(cherry picked from commit e9e06a11daf036abf7a7022ebc8eaefde178aa52)

Autobuild-User(v4-12-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-12-test): Thu Nov 19 14:09:43 UTC 2020 on sn-devel-184
source3/modules/vfs_shadow_copy2.c