From d570dd59ecf8d7ca6bc3dcf3714f88e8e430f6b7 Mon Sep 17 00:00:00 2001 From: Mario Fetka Date: Fri, 29 May 2026 13:51:48 +0200 Subject: [PATCH] docs: refresh NCOPY status and path helper usage Document that NCOPY is still compiled but intentionally not registered in the NET multicall dispatcher while the NCP87/OpenCreate -> NCP74 server-side copy path remains under investigation. Also remove NCOPY's local parent-pattern wrapper and call the shared tool_parent_pattern() helper directly, while keeping the NCOPY-specific default handling for empty parent and pattern results at the call site. No behavior change. --- README.md | 1 + ncopy.c | 15 +++++---------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 0cd81d9..67a49b8 100644 --- a/README.md +++ b/README.md @@ -698,6 +698,7 @@ This is legacy DOS networking code from the mid-1990s, and a few caveats are wor - `FLAGDIR` currently focuses on the NetWare 386-style attributes and simple mapped directory paths. - OS/2 requester behavior is still future work. - Some authentication and password-change paths still keep older calls as compatibility fallbacks. +- `NCOPY` is still built so it stays compile-tested, but it is intentionally not registered in the `NET` multicall dispatcher while the NCP87/OpenCreate -> NCP74 server-side copy path remains under investigation. ## Historical metadata diff --git a/ncopy.c b/ncopy.c index bc74bce..a8cd8d8 100644 --- a/ncopy.c +++ b/ncopy.c @@ -190,15 +190,6 @@ static int ncopy_is_dir(char *path) return(0); } -static void ncopy_parent_pattern(char *dir, char *pat, char *path) -{ - tool_parent_pattern(dir, pat, path, 260, 260); - if (!dir[0]) - strmaxcpy(dir, ".", 259); - if (!pat[0]) - strmaxcpy(pat, "*.*", 259); -} - static void ncopy_add_slash(char *dst, int max) { int len = strlen(dst); @@ -1671,7 +1662,11 @@ int func_ncopy(int argc, char *argv[], int mode) strmaxcpy(srcdir, src, sizeof(srcdir) - 1); strmaxcpy(pat, "*.*", sizeof(pat) - 1); } else { - ncopy_parent_pattern(srcdir, pat, src); + tool_parent_pattern(srcdir, pat, src, 260, 260); + if (!srcdir[0]) + strmaxcpy(srcdir, ".", sizeof(srcdir) - 1); + if (!pat[0]) + strmaxcpy(pat, "*.*", sizeof(pat) - 1); } result = ncopy_copy_pattern(srcdir, pat, dst, options, &copied, &failed); } else {