Fix bug #5797 - Moving readonly files fails. Reported by infomail@lordb.de.
authorJeremy Allison <jra@samba.org>
Fri, 26 Sep 2008 22:17:14 +0000 (15:17 -0700)
committerJeremy Allison <jra@samba.org>
Fri, 26 Sep 2008 22:17:14 +0000 (15:17 -0700)
commitda8bebaa646db4c298038ba0013b47e88840977e
treeadb5e0722971b55202f18bd43e94cba778874d08
parentcd49586b29d754e497d10ed18be5d9b27e8c4a3d
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.
source3/smbd/open.c