From d1f38cd73ed5d71ec32e52bee8a60d206fea38ae Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 13 Mar 2004 17:38:07 +0000 Subject: [PATCH] Rest of my winbindd_passdb alias support --- source/Makefile.in | 1 + source/lib/util_str.c | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/source/Makefile.in b/source/Makefile.in index f00cf0c172b..81644744dfe 100644 --- a/source/Makefile.in +++ b/source/Makefile.in @@ -635,6 +635,7 @@ WINBINDD_OBJ1 = \ nsswitch/winbindd_wins.o \ nsswitch/winbindd_rpc.o \ nsswitch/winbindd_ads.o \ + nsswitch/winbindd_passdb.o \ nsswitch/winbindd_dual.o \ nsswitch/winbindd_acct.o diff --git a/source/lib/util_str.c b/source/lib/util_str.c index 2be8b7eb64c..be1e2ffeb1b 100644 --- a/source/lib/util_str.c +++ b/source/lib/util_str.c @@ -2027,3 +2027,21 @@ SMB_BIG_UINT STR_TO_SMB_BIG_UINT(const char *nptr, const char **entptr) return val; } + +void string_append(char **left, const char *right) +{ + int new_len = strlen(right) + 1; + + if (*left == NULL) { + *left = malloc(new_len); + *left[0] = '\0'; + } else { + new_len += strlen(*left); + *left = Realloc(*left, new_len); + } + + if (*left == NULL) + return; + + safe_strcat(*left, right, new_len-1); +} -- 2.11.4.GIT