Fix bug #5797 - Moving readonly files fails. Reported by infomail@lordb.de.
commit7292c322ca70e9df82e020f45f1510e9ca02efbc
authorJeremy Allison <jra@samba.org>
Fri, 26 Sep 2008 22:18:18 +0000 (26 15:18 -0700)
committerKarolin Seeger <kseeger@samba.org>
Mon, 6 Oct 2008 10:59:47 +0000 (6 12:59 +0200)
tree788613b8ee7e7a6bc60dc474e48c1894aeeb656e
parentaa9a74f33f1a1862836569565d64861706de5429
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 dd43302066b2d3f5270d3ee25a1e2c85d8ce2b85)
source/smbd/open.c