Fix bug #5797 - Moving readonly files fails. Reported by infomail@lordb.de.
commit840c2c28d4db4f068bad793621c793698f2b4db0
authorJeremy Allison <jra@samba.org>
Fri, 26 Sep 2008 22:13:41 +0000 (26 15:13 -0700)
committerKarolin Seeger <kseeger@samba.org>
Mon, 29 Sep 2008 14:51:04 +0000 (29 16:51 +0200)
treec537dcd88216012aa314dc013dac8c6a13b4394f
parent5abfc75c81e3886604a2cec43f2b655ddb3b3978
Fix bug #5797 - Moving readonly files fails. Reported by infomail@lordb.de.
We don't need to deny a DELETE open on a readonly file (I'm also adding a s4
torture test for this), the set_file_disposition call will return
NT_STATUS_CANNOT_DELETE if the delete-on-close bit is set
on a readonly file (and we already do this).
Jeremy.
(cherry picked from commit 14fec47f7171591e5799b81c90c3f5a856002ed0)
source/smbd/open.c