From 1243e093fd31c5660adf1bb3dd477d6935a755be Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Mon, 16 Mar 2015 10:35:59 +0100 Subject: IPA: Use custom error codes when validating HBAC rules MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://fedorahosted.org/sssd/ticket/2603 Instead of reusing EINVAL/ENOENT, use more descriptive error codes. This will be useful in the next patch where we act on certain codes. Reviewed-by: Pavel Březina --- src/util/util_errors.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/util/util_errors.c') diff --git a/src/util/util_errors.c b/src/util/util_errors.c index 923f0a86..ac08f627 100644 --- a/src/util/util_errors.c +++ b/src/util/util_errors.c @@ -70,6 +70,8 @@ struct err_string error_to_str[] = { { "Username format not allowed by re_expression" }, /* ERR_REGEX_NOMATCH */ { "Time specification not supported" }, /* ERR_TIMESPEC_NOT_SUPPORTED */ { "Invalid SSSD configuration detected." }, /* ERR_INVALID_CONFIG */ + { "Malformed cache entry" }, /* ERR_MALFORMED_ENTRY */ + { "Unexpected cache entry type" }, /* ERR_UNEXPECTED_ENTRY_TYPE */ { "ERR_LAST" } /* ERR_LAST */ }; -- cgit