summaryrefslogtreecommitdiff
path: root/source4/lib/registry/samba.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/registry/samba.c')
-rw-r--r--source4/lib/registry/samba.c2
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);