summaryrefslogtreecommitdiffstats
path: root/src/db/sysdb.h
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2016-04-20 15:49:11 +0200
committerJakub Hrozek <jhrozek@redhat.com>2016-06-23 13:40:11 +0200
commite732d23f3ec986a463d757781a334040e03d1f59 (patch)
treebeae984cf17e1cdd579840299a16af816659776a /src/db/sysdb.h
parent6e9d7cbe43fdfc866b18f9ef0779bbfc10ad6f3a (diff)
downloadsssd-e732d23f3ec986a463d757781a334040e03d1f59.tar.gz
sssd-e732d23f3ec986a463d757781a334040e03d1f59.tar.xz
sssd-e732d23f3ec986a463d757781a334040e03d1f59.zip
UTIL: Add error codes for sysdb too old or too new
We used really strange errno codes for detecting whether the database is too old or too new. We should use our sssd-specific error coded instead. Reviewed-by: Sumit Bose <sbose@redhat.com>
Diffstat (limited to 'src/db/sysdb.h')
-rw-r--r--src/db/sysdb.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/db/sysdb.h b/src/db/sysdb.h
index 6567e904f..42f845033 100644
--- a/src/db/sysdb.h
+++ b/src/db/sysdb.h
@@ -265,14 +265,14 @@
"cached credentials.\n")
#define SYSDB_VERSION_LOWER_ERROR(ret) do { \
- if (ret == EUCLEAN) { \
+ if (ret == ERR_SYSDB_VERSION_TOO_NEW) { \
ERROR("Lower version of database is expected!\n"); \
SYSDB_VERSION_ERROR_HINT; \
} \
} while(0)
#define SYSDB_VERSION_HIGHER_ERROR(ret) do { \
- if (ret == EMEDIUMTYPE) { \
+ if (ret == ERR_SYSDB_VERSION_TOO_OLD) { \
ERROR("Higher version of database is expected!\n"); \
ERROR("In order to upgrade the database, you must run SSSD.\n"); \
SYSDB_VERSION_ERROR_HINT; \