Rest of my winbindd_passdb alias support
authorVolker Lendecke <vlendec@samba.org>
Sat, 13 Mar 2004 17:38:07 +0000 (17:38 +0000)
committerVolker Lendecke <vlendec@samba.org>
Sat, 13 Mar 2004 17:38:07 +0000 (17:38 +0000)
(This used to be commit d1f38cd73ed5d71ec32e52bee8a60d206fea38ae)

source3/Makefile.in
source3/lib/util_str.c

index f00cf0c172bde924744f17ec70993f1cd02dfcd1..81644744dfee18196728e779b5d86e666ca9d7d5 100644 (file)
@@ -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
 
index 2be8b7eb64cce9f5889bd282fb6b45ffb9d0236c..be1e2ffeb1bb84f46e33401304c4f37db99541c3 100644 (file)
@@ -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);
+}