IETF-SSH archive

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

Re: ssh filexfer





On Monday, October 24, 2005 10:56:01 AM -0400 Richard Whalen <Whalenr%process.com@localhost> wrote:

I ran across a problem last week that doesn't appear to be covered in the
latest draft.

Customer was doing a text transfer of a file.  The program does an
SSH_FXP_FSETSTAT at the end with file size specified.  This ended up as
an ftruncate, which returned an error because the file was opened for
record access and the offset specified wasn't a record boundary.

It could have been worse -- the specified size could have happened to be on a record boundary, but still too small.

Perhaps clients transferring files in text mode SHOULD NOT attempt to set the file size. It seems like doing so is likely to do more harm than good.

-- Jeffrey T. Hutzelman (N3NHS) <jhutz+%cmu.edu@localhost>
  Sr. Research Systems Programmer
  School of Computer Science - Research Computing Facility
  Carnegie Mellon University - Pittsburgh, PA




Home | Main Index | Thread Index | Old Index