diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-08-27 13:13:08 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 15:02:50 -0500 |
commit | 2edf63b6d647eba131e213bd9dbc543100396930 (patch) | |
tree | 7416510a7f86dc10a41e64800f336f7870d34689 /source4/lib/registry/hive.c | |
parent | e56566f3df59fcbca5f15757bf93d23ee9bd9851 (diff) | |
download | samba-2edf63b6d647eba131e213bd9dbc543100396930.tar.gz samba-2edf63b6d647eba131e213bd9dbc543100396930.tar.bz2 samba-2edf63b6d647eba131e213bd9dbc543100396930.zip |
r24703: Use standard registry diff files when provisioning rather than
LDIF files for the registry files.
(This used to be commit 67ad556b7388e5d82756e0a3cfc596e44136329c)
Diffstat (limited to 'source4/lib/registry/hive.c')
-rw-r--r-- | source4/lib/registry/hive.c | 2 |
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; } |