summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2004-03-13 17:38:07 +0000
committerVolker Lendecke <vlendec@samba.org>2004-03-13 17:38:07 +0000
commit26640ed9b1e512d8f7c04501eca8ae05635798b8 (patch)
treeec94ede96baf8704d674bc366d32909c2dcb9fac
parent9522e181d1537bb4ec5e1d39ee4fb5034d07be20 (diff)
downloadsamba-26640ed9b1e512d8f7c04501eca8ae05635798b8.tar.gz
samba-26640ed9b1e512d8f7c04501eca8ae05635798b8.tar.bz2
samba-26640ed9b1e512d8f7c04501eca8ae05635798b8.zip
Rest of my winbindd_passdb alias support
(This used to be commit d1f38cd73ed5d71ec32e52bee8a60d206fea38ae)
-rw-r--r--source3/Makefile.in1
-rw-r--r--source3/lib/util_str.c18
2 files changed, 19 insertions, 0 deletions
diff --git a/source3/Makefile.in b/source3/Makefile.in
index f00cf0c172..81644744df 100644
--- a/source3/Makefile.in
+++ b/source3/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/source3/lib/util_str.c b/source3/lib/util_str.c
index 2be8b7eb64..be1e2ffeb1 100644
--- a/source3/lib/util_str.c
+++ b/source3/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);
+}