smbd: Simplify dropbox special case in unix_convert
authorVolker Lendecke <vl@samba.org>
Mon, 19 Aug 2013 10:26:00 +0000 (10:26 +0000)
committerKarolin Seeger <kseeger@samba.org>
Fri, 30 Aug 2013 08:04:18 +0000 (10:04 +0200)
commitc65a4e82886487a389ab2c1d21487e0d16f6fb16
treef45e8111c9fc0f8d73351f234e92912cd9e56335
parentc72c00cd126194aaa51d74585b0ca32cf224663b
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>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Mon Aug 26 12:14:26 CEST 2013 on sn-devel-104

The last 2 patches address bug #10114 - Dropbox (write-only-directory) case
isn't handled correctly in pathname lookup.
source3/smbd/filename.c