smbd: Simplify dropbox special case in unix_convert
authorVolker Lendecke <vl@samba.org>
Mon, 19 Aug 2013 10:26:00 +0000 (10:26 +0000)
committerVolker Lendecke <vl@samba.org>
Mon, 26 Aug 2013 10:14:26 +0000 (12:14 +0200)
commit76142780fb6d69bdf6e15ea27b0436da3fa49fae
treec234f8769084a463d04149a6ab476b697962f6b6
parent84b8bddd7d6845f389444e57d2029f2a954dfcd5
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
source3/smbd/filename.c