On Sat, 2011-05-28 at 16:36 -0500, Michael B. Brutman wrote:
> > 1. When I try to copy a file with a long filename in Filezilla to
> the
> > FreeDOS machine mTCP ftpsrv will not store it. Instead it responds
> > with "550 Bad path". Filezilla translates this to "Critical error".
> In
> > comparison, WATT32 ftpsrv32 stores it anyway and lets FreeDOS cut
> the
> > name.
> 
> I aggressively parse the file and path to ensure that they are valid
> and 
> are not going to cause buffer overruns.  I'm kind of paranoid about 
> buffer overruns, especially since so many versions of DOS can be
> used.  
> (I've tested on everything from PC 2.1 up to DOSBox's emulation of 
> DOS.)  I could truncate the requested filename, but I think that 
> returning the error is the more proper thing to do. 

When picking up files that doesn't fit into DOS's 8.3 file name format,
I usually do:

machine > get very_long_file_name.extension vlf.ext

Works for me every time. 
-- 
Tactical Nuclear Kittens



------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
Freedos-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freedos-user

Reply via email to