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.
This commit is contained in:
Mario Fetka
2026-05-29 13:51:48 +02:00
parent 686b27a668
commit d570dd59ec
2 changed files with 6 additions and 10 deletions

View File

@@ -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

15
ncopy.c
View File

@@ -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 {