summaryrefslogtreecommitdiff
path: root/source4/lib/registry/hive.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-01-18 03:37:06 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-01-18 03:42:00 +0100
commit55ad09a01b31f2d2c9503f744b519e089f9f936b (patch)
treec2e97bda845c555b382c5c0bd2671601faf28dc0 /source4/lib/registry/hive.c
parentb5ba4910120e5350e48927cc0f5f06742ee02eb8 (diff)
downloadsamba-55ad09a01b31f2d2c9503f744b519e089f9f936b.tar.gz
samba-55ad09a01b31f2d2c9503f744b519e089f9f936b.tar.bz2
samba-55ad09a01b31f2d2c9503f744b519e089f9f936b.zip
registry: Use correct return values.
(This used to be commit 98ebdbe52fd615ea62a3caa17acfe8bb31b8f85d)
Diffstat (limited to 'source4/lib/registry/hive.c')
-rw-r--r--source4/lib/registry/hive.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/registry/hive.c b/source4/lib/registry/hive.c
index bbe510772c..5d56a30b3e 100644
--- a/source4/lib/registry/hive.c
+++ b/source4/lib/registry/hive.c
@@ -41,7 +41,7 @@ _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;
return WERR_BADFILE;
}