diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2015-03-16 10:35:59 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2015-03-24 21:03:26 +0100 |
commit | 1243e093fd31c5660adf1bb3dd477d6935a755be (patch) | |
tree | 0d6c31332f90c5904fe8c067800d36077b8dd18a /src/util/util_errors.h | |
parent | 9797aa5907191cef5db8279e20ec75fd0abbe980 (diff) | |
download | sssd-1243e093fd31c5660adf1bb3dd477d6935a755be.tar.gz sssd-1243e093fd31c5660adf1bb3dd477d6935a755be.tar.xz sssd-1243e093fd31c5660adf1bb3dd477d6935a755be.zip |
IPA: Use custom error codes when validating HBAC rules
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 <pbrezina@redhat.com>
Diffstat (limited to 'src/util/util_errors.h')
-rw-r--r-- | src/util/util_errors.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/util_errors.h b/src/util/util_errors.h index 54d474f96..c03274ce2 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 */ }; |