diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-01-18 03:37:06 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-01-18 03:42:00 +0100 |
commit | 55ad09a01b31f2d2c9503f744b519e089f9f936b (patch) | |
tree | c2e97bda845c555b382c5c0bd2671601faf28dc0 /source4/lib/registry/dir.c | |
parent | b5ba4910120e5350e48927cc0f5f06742ee02eb8 (diff) | |
download | samba-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/dir.c')
-rw-r--r-- | source4/lib/registry/dir.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/registry/dir.c b/source4/lib/registry/dir.c index 87d76e5eb7..27cae8c490 100644 --- a/source4/lib/registry/dir.c +++ b/source4/lib/registry/dir.c @@ -64,7 +64,7 @@ static WERROR reg_dir_del_key(const struct hive_key *k, const char *name) if (rmdir(child) == 0) ret = WERR_OK; else if (errno == ENOENT) - ret = WERR_NOT_FOUND; + ret = WERR_BADFILE; else ret = WERR_GENERAL_FAILURE; @@ -339,7 +339,7 @@ static WERROR reg_dir_del_value (struct hive_key *key, const char *name) if (unlink(path) < 0) { talloc_free(path); if (errno == ENOENT) - return WERR_NOT_FOUND; + return WERR_BADFILE; return WERR_GENERAL_FAILURE; } talloc_free(path); |