From 2b354d7330785337558a678f2b2484691ad7f2eb Mon Sep 17 00:00:00 2001 From: Luke Leighton Date: Thu, 15 Jul 1999 17:52:44 +0000 Subject: dfs issues (This used to be commit d9ada8b55d539e555d25298e0a308ea952e2807e) --- source3/smbd/dfs.c | 21 ++++++++++++++------- source3/smbd/trans2.c | 2 +- 2 files changed, 15 insertions(+), 8 deletions(-) (limited to 'source3/smbd') diff --git a/source3/smbd/dfs.c b/source3/smbd/dfs.c index baae960538..ca45d89b37 100644 --- a/source3/smbd/dfs.c +++ b/source3/smbd/dfs.c @@ -184,14 +184,21 @@ int under_dfs(connection_struct *conn, const char *path) dfs_internal_table *list=dfs_struct.table; snum=SNUM(conn); - snprintf(fullpath, sizeof(fullpath), "\\%s\\%s\\%s", global_myname, - lp_servicename(snum), path); + if (path[0] != '\\') + { + snprintf(fullpath, sizeof(fullpath), "\\%s\\%s\\%s", + global_myname, lp_servicename(snum), path); + } + else + { + safe_strcpy(fullpath, path, sizeof(fullpath)); + } strupper(fullpath); path_len=strlen(fullpath); - DEBUG(0,("looking for: [%s]\n", fullpath)); + DEBUG(2,("DFS looking for: [%s]\n", fullpath)); for(i=0; i