diff options
author | Sumit Bose <sbose@redhat.com> | 2014-10-08 16:12:52 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2014-10-16 17:56:07 +0200 |
commit | 8a2a503fa5c01ea037d28b7c902b8821a11084bd (patch) | |
tree | 05b87b9b9c26b72fae1c1f983007894868401081 /m4 | |
parent | ca49ae1eee321751681e99f3ebe2547211db3bf6 (diff) | |
download | sssd-8a2a503fa5c01ea037d28b7c902b8821a11084bd.tar.gz sssd-8a2a503fa5c01ea037d28b7c902b8821a11084bd.tar.xz sssd-8a2a503fa5c01ea037d28b7c902b8821a11084bd.zip |
sysdb: add sysdb_attrs_add_val_safe() and sysdb_attrs_add_string_safe()
sysdb_attrs_add_val_safe() works like sysdb_attrs_add_val() but checks
if the attribute value to add already exists. In this case the value
list is not changed. This is useful if values are added from different
sources at different times to avoid LDB_ERR_ATTRIBUTE_OR_VALUE_EXISTS
errors from ldb_modify() later on.
sysdb_attrs_add_string_safe() does the same for string arguments
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
Diffstat (limited to 'm4')
0 files changed, 0 insertions, 0 deletions