summaryrefslogtreecommitdiffstats
path: root/src/util/util.h
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2010-07-23 13:20:40 -0400
committerStephen Gallagher <sgallagh@redhat.com>2010-10-08 19:51:16 -0400
commit5e26273e53adbdb4ab65b6c9259240219587154a (patch)
tree17092942b10219e173f48a4b9a8b23264c422a39 /src/util/util.h
parent37c1fabc077375ed2f40ba1f5fa6274ba281c133 (diff)
downloadsssd-5e26273e53adbdb4ab65b6c9259240219587154a.tar.gz
sssd-5e26273e53adbdb4ab65b6c9259240219587154a.tar.xz
sssd-5e26273e53adbdb4ab65b6c9259240219587154a.zip
Clean up initgroups processing for RFC2307
Instead of recursively updating all users of each group the user being queried belongs to, just add or remove membership for the requested user. Resolves: rhbz#617623
Diffstat (limited to 'src/util/util.h')
-rw-r--r--src/util/util.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/util/util.h b/src/util/util.h
index 3c95f7a20..6bcc9984d 100644
--- a/src/util/util.h
+++ b/src/util/util.h
@@ -331,4 +331,23 @@ int split_on_separator(TALLOC_CTX *mem_ctx, const char *str,
const char sep, bool trim, char ***_list, int *size);
char **parse_args(const char *str);
+
+
+/* Copy a NULL-terminated string list
+ * Returns NULL on out of memory error or invalid input
+ */
+char **dup_string_list(TALLOC_CTX *memctx, const char **str_list);
+
+/* Take two string lists (terminated on a NULL char*)
+ * and return up to three arrays of strings based on
+ * shared ownership.
+ *
+ * Pass NULL to any return type you don't care about
+ */
+errno_t diff_string_lists(TALLOC_CTX *memctx,
+ char **string1,
+ char **string2,
+ char ***string1_only,
+ char ***string2_only,
+ char ***both_strings);
#endif /* __SSSD_UTIL_H__ */