summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGregor Beck <gbeck@sernet.de>2012-05-02 11:22:54 +0200
committerMichael Adam <obnox@samba.org>2012-06-26 19:57:18 +0200
commit35eccd0f53deb59bfdd80589da38d8ae2467fb8d (patch)
tree07c5da4b162d0427f7cb9f9de2b66316b59c9262 /source3
parentfb706c7365a0db1ef54a928f4eb2c68718516bc8 (diff)
downloadsamba-35eccd0f53deb59bfdd80589da38d8ae2467fb8d.tar.gz
samba-35eccd0f53deb59bfdd80589da38d8ae2467fb8d.tar.bz2
samba-35eccd0f53deb59bfdd80589da38d8ae2467fb8d.zip
s3:registry: silence net_deletekey_recursive
WERR_BADFILE may not be an error for the caller because the result is the same. Signed-off-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/registry/reg_api.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/registry/reg_api.c b/source3/registry/reg_api.c
index 26a14815ad..b962920bcf 100644
--- a/source3/registry/reg_api.c
+++ b/source3/registry/reg_api.c
@@ -1010,10 +1010,10 @@ static WERROR reg_deletekey_recursive_trans(struct registry_key *parent,
if (!W_ERROR_IS_OK(werr)) {
WERROR werr2;
-
- DEBUG(1, (__location__ " failed to delete key '%s' from key "
- "'%s': %s\n", path, parent->key->name,
- win_errstr(werr)));
+ DEBUG(W_ERROR_EQUAL(werr, WERR_BADFILE) ? 5 : 1,
+ (__location__ ": failed to delete key '%s' from key "
+ "'%s': %s\n", path, parent->key->name,
+ win_errstr(werr)));
werr2 = regdb_transaction_cancel();
if (!W_ERROR_IS_OK(werr2)) {