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:
@@ -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
15
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 {
|
||||
|
||||
Reference in New Issue
Block a user