IETF-SSH archive

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

RE: Text file type hint proposal for filexfer



If the conversion is being performed, then the file can not be opened
in binary mode, as a request to open a file for read access that does
not specify text mode will automatically be checked to see if it can
be converted.

Which files are converted is controlled by an environment variable that
can be set on the server (outside of the SFTP server), or set by the client
with an SSH_FXP_EXTENDED command with a command name of
TRANSLATE_VMS%PROCESS.COM@localhost
and an integer parameter that is a bit mask of the types files to be
converted.
0 (zero) is none. Bit 0 (little endian) is fixed length files, bit 1 is
variable length record files, and bit 2 is files with variable length
records and fixed carriage control information.  Legal values are between
0 and 7.

Richard Whalen

-----Original Message-----
From: nisse%lysator.liu.se@localhost [mailto:nisse%lysator.liu.se@localhost]
Sent: Tuesday, October 05, 2004 11:32 AM
To: Richard Whalen
Cc: 'ietf-ssh%netbsd.org@localhost'
Subject: Re: Text file type hint proposal for filexfer


> Our current SFTP implementation uses the file header information to do
> on the fly conversion of the various VMS text file formats to a stream
> of characters format when transferring text file to a non-VMS
> system.

Out of curiosity, what happens if the sftp client tries to open these
files in binary mode?

/Niels



Home | Main Index | Thread Index | Old Index