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.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/util/util_errors.h') diff --git a/src/util/util_errors.h b/src/util/util_errors.h index 54d474f9..c03274ce 100644 --- a/src/util/util_errors.h +++ b/src/util/util_errors.h @@ -92,6 +92,8 @@ enum sssd_errors { ERR_REGEX_NOMATCH, ERR_TIMESPEC_NOT_SUPPORTED, ERR_INVALID_CONFIG, + ERR_MALFORMED_ENTRY, + ERR_UNEXPECTED_ENTRY_TYPE, ERR_LAST /* ALWAYS LAST */ }; -- cgit