summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2015-01-29 15:29:26 +0100
committerJakub Hrozek <jhrozek@redhat.com>2015-05-22 15:57:03 +0200
commit10a28f461c25d788ff4dcffefa881e7aa724a25d (patch)
tree5df10c69ac2c35e93c9934a6a43fc4474efde3c8 /src/util
parent364b3572bab5a9649e8f2d4da835d05d3c8ca7a9 (diff)
downloadsssd-10a28f461c25d788ff4dcffefa881e7aa724a25d.tar.gz
sssd-10a28f461c25d788ff4dcffefa881e7aa724a25d.tar.xz
sssd-10a28f461c25d788ff4dcffefa881e7aa724a25d.zip
sbus: add sbus_opath_decompose[_exact]
This function decomposes object path into array of strings. The "_exact" version expects a certain number of parts otherwise an error is thrown. Reviewed-by: Jakub Hrozek <jhrozek@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 62d580fe8..64c52b57c 100644
--- a/src/util/util_errors.c
+++ b/src/util/util_errors.c
@@ -62,6 +62,7 @@ struct err_string error_to_str[] = {
{ "Malformed extra attribute" }, /* ERR_INVALID_EXTRA_ATTR */
{ "Cannot get bus message sender" }, /* ERR_SBUS_GET_SENDER_ERROR */
{ "Bus message has no sender" }, /* ERR_SBUS_NO_SENDER */
+ { "Invalid SBUS path provided." }, /* ERR_SBUS_INVALID_PATH */
{ "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 c8293a4c6..2dbf2243c 100644
--- a/src/util/util_errors.h
+++ b/src/util/util_errors.h
@@ -84,6 +84,7 @@ enum sssd_errors {
ERR_INVALID_EXTRA_ATTR,
ERR_SBUS_GET_SENDER_ERROR,
ERR_SBUS_NO_SENDER,
+ ERR_SBUS_INVALID_PATH,
ERR_NO_SIDS,
ERR_SBUS_NOSUP,
ERR_NO_SYSBUS,