ldb: Return LDB_ERR_INSUFFICIENT_ACCESS_RIGHTS rather than OPERATIONS_ERROR on EACCES...
commitad4a09cf767537b06d880a2249cb7e392dd84fe7
authorAndrew Bartlett <abartlet@samba.org>
Wed, 5 Feb 2014 01:52:28 +0000 (5 14:52 +1300)
committerKarolin Seeger <kseeger@samba.org>
Tue, 15 Jul 2014 10:46:14 +0000 (15 12:46 +0200)
tree448627fd06f8d09a8779ee7a6e33b2e2ea2324f2
parenta8c95195109ce330ef491948b6dbeb35cdc33154
ldb: Return LDB_ERR_INSUFFICIENT_ACCESS_RIGHTS rather than OPERATIONS_ERROR on EACCES and EPERM

This makes provision errors clearer in Samba.

Andrew Bartlett

Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
(cherry picked from commit 673d41503c6e391337df1b86e49108d58f1af6bd)
lib/ldb/ldb_tdb/ldb_tdb.c