Josh Lindenmuth
2004-Apr-14 23:11 UTC
[Samba] Unexpected results with DOS COPY command and Samba 3.0.2
The DOS copy command does not seem to work as expected with Samba. There are 2 bugs (or issues with our configuration): 1. Copying with a wildcard does not maintain dates (e.g. 'copy G:\SMBNET\file?.txt G:\SMBNET\OUT\' changes the dates to today on Win98 and prior) 2. Copying with a wildcard for a single file creates an incomplete file (e.g. 'copy G:\SMBNET\large?.exe file7.exe' will create a 6K file even though the source is 3M - using xcopy or the full path name works fine) I realize COPY in a DOS .BAT is not the greatest way to move around data, but we have 100's of old DOS batch files that are still using copy commands that I'd hate to mess with. Any suggestions on how to fix this? josh
Jeremy Allison
2004-Apr-15 01:32 UTC
[Samba] Unexpected results with DOS COPY command and Samba 3.0.2
On Wed, Apr 14, 2004 at 07:10:51PM -0400, Josh Lindenmuth wrote:> The DOS copy command does not seem to work as expected with Samba. There > are 2 bugs (or issues with our configuration): > 1. Copying with a wildcard does not maintain dates (e.g. 'copy > G:\SMBNET\file?.txt G:\SMBNET\OUT\' changes the dates to today on Win98 and > prior) > 2. Copying with a wildcard for a single file creates an incomplete file > (e.g. 'copy G:\SMBNET\large?.exe file7.exe' will create a 6K file even > though the source is 3M - using xcopy or the full path name works fine) > > I realize COPY in a DOS .BAT is not the greatest way to move around data, > but we have 100's of old DOS batch files that are still using copy commands > that I'd hate to mess with. > > Any suggestions on how to fix this?Whew... you had me worried there for a bit.... I thought this was a really bad Samba bug - then I reproduced it between Win2003 and WinNT. It's a Windows redirector bug... I'd appreciate it if you could confirm this Windows to Windows. We just emulate Windows perfectly here :-) Jeremy.