Problem
The DosCopy() function call that copies a file or subdirectory returns an error code 2 when the compiled program is run.
Cause
This error may be generated when a treecopy is requested and
the source has not been specified to be a directory. The
SMB 2.0 specification states that in order to use the DosCopy()
function call for a treecopy, the source has to be a directory. Solution
The behavior of applications when using the Doscopy() function call to copy files to SCO Lan Manager servers differs:
- With Lan Manager 1.x, there are no checks in place at the
SMB level so using DosCopy() with treecopy will be successful.- With Lan Manager 2.x, we conform to the SMB 2.0 specification
and will fail the treecopy if the source is not a directory.SCO is aware that some developers require the DosCopy() function
call to succeed even if the source is not a directory. This is
under investigation.The DosCopy() function call is defined in the Microsoft OS/2 Programmer's Reference.