smbd: Simplify dropbox special case in unix_convert
commit0150086d44e90351634a68aced1e44ad076a693c
authorVolker Lendecke <Volker.Lendecke@SerNet.DE>
Wed, 28 Aug 2013 22:42:22 +0000 (28 15:42 -0700)
committerKarolin Seeger <kseeger@samba.org>
Fri, 30 Aug 2013 08:07:24 +0000 (30 10:07 +0200)
tree1ef7126ab46ed622cdf89d642a40347c3f6dca7f
parentb55072ccf8d801726aec49a925f5a69277a10494
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.
source3/smbd/filename.c