[PATCH]: Port of openssh-2.1.0p3 to Cygwin environment

Jim Knoble jmknoble at pint-stowp.cx
Mon Jun 12 06:15:32 EST 2000


Circa 2000-Jun-11 20:04:53 +0000 schrieb Adam M. Costello:

: I know nothing about Cygwin, but is it ANSI C comformant?  K&R2 does not
: mention the option of including "t" in the mode.  It says you can either
: have a "b" or not have one.

Plauger ("The Standard C Library") confirms this:  fopen(... "r" ...)
means text mode, while fopen(... "rb" ...) means binary.

: It should be perfectly safe to use "b" for binary files on all
: platforms, so I see no need to use the preprocessor.

Agreed.  Use of "b" with fopen() ought to get folded back into
OpenBSD's OpenSSH code.

-- 
jim knoble | jmknoble at jmknoble.cx | http://www.jmknoble.cx/





More information about the openssh-unix-dev mailing list