[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Transferring disk over serial port through PC's standard i/o?



Michael J. Mahon <mjmahon@aol.com> wrote:
> > In summary, even though nublib2 recognizes the file type info for .BNY
> > files, and thus is seemingly capable of preserving this information in the
> > files it writes, it does not.
> 
> I've never used nulib to extract files from a .BNY archive, only from
> ShrinkIt archives (with or without wrapper), so I was unaware that it
> did not preserve the .BNY file info.

The actual problem is that ProTERM appears to be prepending the 128-byte
BNY header but not padding the file to a 128-byte boundary.  The code in
NuLib2 is failing because it gets a short read, and then neglects to
remove the partially-written file.  So you end up with an almost-complete
file that doesn't have the file attributes set.

This doesn't affect wrapped ShrinkIt BXY archives, because those are handled
by a completely different piece of code.

-- 
Send mail to fadden@fadden.com (Andy McFadden) - http://www.fadden.com/
Fight Internet Spam - http://spam.abuse.net/spam/ & http://spamcop.net/