diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-01-18 03:00:00 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-01-18 03:42:00 +0100 |
commit | b5ba4910120e5350e48927cc0f5f06742ee02eb8 (patch) | |
tree | 9928db273316426ededaafe44b19195420ee7c80 /source4/lib/registry/samba.c | |
parent | e490415e2e300452e152373eb79fb437fb11449d (diff) | |
download | samba-b5ba4910120e5350e48927cc0f5f06742ee02eb8.tar.gz samba-b5ba4910120e5350e48927cc0f5f06742ee02eb8.tar.bz2 samba-b5ba4910120e5350e48927cc0f5f06742ee02eb8.zip |
registry: Avoid mapping registry return codes: return the right value in the first place.
(This used to be commit 434e4857cec17d6d9e8983e151c170eed59fc6d1)
Diffstat (limited to 'source4/lib/registry/samba.c')
-rw-r--r-- | source4/lib/registry/samba.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/registry/samba.c b/source4/lib/registry/samba.c index 02f3363bab..599385e73c 100644 --- a/source4/lib/registry/samba.c +++ b/source4/lib/registry/samba.c @@ -42,7 +42,7 @@ static WERROR mount_samba_hive(struct registry_context *ctx, error = reg_open_hive(ctx, location, auth_info, creds, lp_ctx, &hive); - if (W_ERROR_EQUAL(error, WERR_NOT_FOUND)) + if (W_ERROR_EQUAL(error, WERR_BADFILE)) error = reg_open_ldb_file(ctx, location, auth_info, creds, lp_ctx, &hive); |