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)
committerRalph Boehme <slow@samba.org>
Thu, 12 Nov 2020 17:23:19 +0000 (17:23 +0000)
commite9e06a11daf036abf7a7022ebc8eaefde178aa52
tree527c5ab83e869c3fb03875dd722d205bbcd4255d
parent8036bf9717f83e83c3e4a9cf00fded42e9a5de15
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
source3/modules/vfs_shadow_copy2.c