From 514fb3cbdc637931fc3519a2c91c7f42210cb973 Mon Sep 17 00:00:00 2001 From: Mario Fetka Date: Wed, 20 May 2026 10:58:38 +0200 Subject: [PATCH] connect revers path changes --- src/connect.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/connect.c b/src/connect.c index f2a7582..bf312fc 100644 --- a/src/connect.c +++ b/src/connect.c @@ -1152,6 +1152,12 @@ static int build_dir_name(NW_PATH *nwpath, /* gets complete path */ uint8 *p=searchpath; uint8 *ppp=nwpath->path; int completition=0; + XDPRINTF((2,0, + "BUILD_DIR ENTER volume=%d path='%s' fn='%s' dirhandle=%d", + nwpath ? nwpath->volume : -1, + (nwpath && nwpath->path) ? (char *)nwpath->path : "(null)", + (nwpath && nwpath->fn) ? (char *)nwpath->fn : "(null)", + dir_handle)); xstrcpy(searchpath, (char*)ppp); /* save path */ @@ -1242,6 +1248,13 @@ static int build_dir_name(NW_PATH *nwpath, /* gets complete path */ up_fn(ppp); up_fn(nwpath->fn); } + XDPRINTF((2,0, + "BUILD_DIR OPTIONS volume=%d options=0x%x IGNCASE=%d path='%s' fn='%s'", + nwpath->volume, + v->options, + !!(v->options & VOL_OPTION_IGNCASE), + nwpath->path, + nwpath->fn)); if (v->options & VOL_OPTION_IGNCASE) { uint8 unixname[1024]; /* should be enough */ uint8 *pp=unixname+v->unixnamlen; @@ -1314,6 +1327,12 @@ static int conn_get_kpl_path(NW_PATH *nwpath, struct stat *stbuff, */ { int completition = build_path(nwpath, data, len, only_dir); + XDPRINTF((2,0, + "KPL ENTER dirhandle=%d len=%d only_dir=%d data0=0x%x", + dirhandle, + len, + only_dir, + data ? (unsigned int)data[0] : 0)); XDPRINTF((5, 0, "compl=0x%x, conn_get_kpl_path %s", completition, conn_get_nwpath_name(nwpath))); if (!completition) completition = build_dir_name(nwpath, stbuff, dirhandle);