summaryrefslogtreecommitdiff
path: root/source4/lib/registry/hive.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/registry/hive.c')
-rw-r--r--source4/lib/registry/hive.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/lib/registry/hive.c b/source4/lib/registry/hive.c
index b2c826b93d..97ce883e66 100644
--- a/source4/lib/registry/hive.c
+++ b/source4/lib/registry/hive.c
@@ -39,6 +39,8 @@ _PUBLIC_ WERROR reg_open_hive(TALLOC_CTX *parent_ctx, const char *location,
fd = open(location, O_RDWR);
if (fd == -1) {
+ if (errno == ENOENT)
+ return WERR_NOT_FOUND;
return WERR_BADFILE;
}