summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2014-06-24 14:28:51 +0200
committerJakub Hrozek <jhrozek@redhat.com>2014-07-08 20:35:11 +0200
commit0c1d65998907930678da2d091789446f2c344d5d (patch)
treec0b95ab34b61d48f4644b7bde3cb2a8266958c7c /src/util
parent1f2507e1fd089f2bf3458cfb4faeaa9669d72f98 (diff)
downloadsssd-0c1d65998907930678da2d091789446f2c344d5d.tar.gz
sssd-0c1d65998907930678da2d091789446f2c344d5d.tar.xz
sssd-0c1d65998907930678da2d091789446f2c344d5d.zip
IFP: Return a specific value on failure connecting to the system bus
We need to treat the failure to connect to the system bus as non-fatal. In this commit, we introduce a special error code and only print a DEBUG message when this error code is returned from the startup function. Reviewed-by: Pavel Březina <pbrezina@redhat.com>
Diffstat (limited to 'src/util')
-rw-r--r--src/util/util_errors.c1
-rw-r--r--src/util/util_errors.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/util/util_errors.c b/src/util/util_errors.c
index 113567423..aa5693190 100644
--- a/src/util/util_errors.c
+++ b/src/util/util_errors.c
@@ -60,6 +60,7 @@ struct err_string error_to_str[] = {
{ "Bus message has no sender" }, /* ERR_SBUS_NO_SENDER */
{ "User/Group SIDs not found" }, /* ERR_NO_SIDS */
{ "Bus method not supported" }, /* ERR_SBUS_NOSUP */
+ { "Cannot connect to system bus" }, /* ERR_NO_SYSBUS */
};
diff --git a/src/util/util_errors.h b/src/util/util_errors.h
index b88c7969b..f68409eed 100644
--- a/src/util/util_errors.h
+++ b/src/util/util_errors.h
@@ -82,6 +82,7 @@ enum sssd_errors {
ERR_SBUS_NO_SENDER,
ERR_NO_SIDS,
ERR_SBUS_NOSUP,
+ ERR_NO_SYSBUS,
ERR_LAST /* ALWAYS LAST */
};