--- rpc_server/srv_dfs_nt.c.orig Fri Aug 15 16:26:58 2003 +++ rpc_server/srv_dfs_nt.c Fri Aug 15 16:31:00 2003 @@ -353,6 +353,7 @@ { UNISTR2* uni_path = &q_u->uni_path; uint32 level = q_u->level; + int consumedcnt; pstring path; struct junction_map jn; @@ -360,7 +361,7 @@ if(!create_junction(path, &jn)) return WERR_DFS_NO_SUCH_SERVER; - if(!get_referred_path(path, &jn, NULL, NULL)) + if(!get_referred_path(path, &jn, &consumedcnt, NULL) || consumedcnt < strlen(path)) return WERR_DFS_NO_SUCH_VOL; r_u->level = level;