From d09b70c98b8222eb293bc9d8713ec071188ed01d Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Fri, 17 Mar 2006 17:59:58 +0000 Subject: r14527: Fix build problems. (This used to be commit 863ca4014d9b821706ee90f58ab5d5cf3899a4c7) --- source4/torture/gentest.c | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'source4/torture/gentest.c') diff --git a/source4/torture/gentest.c b/source4/torture/gentest.c index 9bfcbaac64..6a97f24ba5 100644 --- a/source4/torture/gentest.c +++ b/source4/torture/gentest.c @@ -26,7 +26,6 @@ #include "libcli/raw/libcliraw.h" #include "librpc/gen_ndr/security.h" #include "auth/gensec/gensec.h" -#include "torture/torture.h" #define NSERVERS 2 #define NINSTANCES 2 @@ -2136,6 +2135,28 @@ static void usage(void) "); } +/** + split a UNC name into server and share names +*/ +static BOOL split_unc_name(const char *unc, char **server, char **share) +{ + char *p = strdup(unc); + if (!p) return False; + all_string_sub(p, "\\", "/", 0); + if (strncmp(p, "//", 2) != 0) return False; + + (*server) = p+2; + p = strchr(*server, '/'); + if (!p) return False; + + *p = 0; + (*share) = p+1; + + return True; +} + + + /**************************************************************************** main program ****************************************************************************/ -- cgit