smbd: Simplify dropbox special case in unix_convert
commite937e097a826c36cdfea51d8c8246350066d267e
authorVolker Lendecke <Volker.Lendecke@SerNet.DE>
Wed, 28 Aug 2013 22:42:22 +0000 (28 15:42 -0700)
committerKarolin Seeger <kseeger@samba.org>
Wed, 18 Sep 2013 08:41:21 +0000 (18 10:41 +0200)
treebf8d378e0f528fbd73bc069bcc3ef1bacad5dfd8
parentcbd9d40912dc4cbe91dbeed8fcfefbdc40208178
smbd: Simplify dropbox special case in unix_convert

EACCESS needs special treatment: If we want to create a fresh file,
return OBJECT_PATH_NOT_FOUND, so that the client will continue creating
the file. If the client wants us to open a potentially existing file,
we need to correctly return ACCESS_DENIED.

This patch makes this behaviour hopefully a bit clearer than the code
before did.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
The last 2 patches address bug #10114 - Dropbox (write-only-directory) case
isn't handled correctly in pathname lookup.
(cherry picked from commit 0150086d44e90351634a68aced1e44ad076a693c)
source3/smbd/filename.c