r12956: Fix for bug #3035 from SATOH Fumiyasu <fumiyas@miraclelinux.com>
authorJeremy Allison <jra@samba.org>
Mon, 16 Jan 2006 05:47:39 +0000 (05:47 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:06:09 +0000 (11:06 -0500)
commitdd185c7aa8de156dab58b065bf73905b2a29f40d
treecd2c93cac5b95d74b1bb9f66711d1e13e0cd0e67
parent2163e4b6b453ebf1fefc64e74890300108bbf8f6
r12956: Fix for bug #3035 from SATOH Fumiyasu <fumiyas@miraclelinux.com>

On a Windows share, a file with read-only dosmode can be opened with
DELETE_ACCESS. But on a Samba share (delete readonly = no), it
fails with NT_STATUS_CANNOT_DELETE error.

This semantic causes a problem that a user can not
rename a file with read-only dosmode on a Samba share
from a Windows command prompt (i.e. cmd.exe, but can rename
from Windows Explorer).

Jeremy.
source/smbd/reply.c