Port of OpenSSH-2.1.1p4 to Cygwin

Corinna Vinschen vinschen at cygnus.com
Wed Aug 2 02:22:22 EST 2000


Hi,

since the previous port of OpenSSH to Cygwin, there's happened
a lot with Cygwin.

We have worked hard to allow a more smooth porting of UNIX
applications which results in two major advantages:

- There's no need to use so called `text mode' in open calls
  anymore.
- With only less interventions in the applications code the concept
  of real and effective uid's is supported as far as it's possible
  with Windows NT/W2K.

The result is a small, more predictable patch then the previous
version.

The patch contains now changes to configure.in and config.h.in,
which support *-*-cygwin as target and which define HAVE_CYGWIN
similar to the NeXT patch. The patch to `configure' is _not_
included. It's very long and not worth to send since it's easy
to rebuild from `configure.in'.

We still have a problem with the sources: One file is called `aux.c'
which is a special filename on Windows systems. This results in the
need to rename the file since it's impossible to create a file with
that name on any Windows system. I have renamed the file to
`aux_funcs.c'. Is it possible to convince the author to rename that
file permanently?

This patch (attached as gzip'd file) needs the latest Cygwin version
1.1.3 which is accessible via ftp://sources.redhat.com/pub/cygwin/latest

ChangeLog:
==========
 - Makefile.in: Changed to support $EXEEXT transparently. aux.o renamed
   to aux_funcs.o in LIBSSH_OBJS.
 - acconfig.h: Add HAVE_CYGWIN.
 - auth-passwd.c: Support getting NT passwords via Cygwin special
   functions. Disable check for uid = 0 when compiled for Cygwin.
 - auth-skey.c: Add O_BINARY to open call.
 - auth1.c: Reject changing user context if not authenticated via
   password under Windows NT. Disable check for uid = 0 when compiled
   for Cygwin.
 - authfile.c: Add O_BINARY to open calls. Disable check for file modes
   when compiled for Cygwin.
 - bsd-daemon.c: Avoid possible race condition under Cygwin.
 - bsd-mktemp.c: Add O_BINARY to open call.
 - config.h.in: Add HAVE_CYGWIN.
 - configure.in: Add *-*-cygwin as target. Call AC_EXEEXT now.
 - entropy.c: Add O_BINARY to open calls.
 - includes.h: Use HAVE_CYGWIN to care for include files. Add a define
   for O_BINARY.
 - loginrec.c: Add O_BINARY to open calls.
 - pty.c: Don't call I_PUSH ioctl's under Cygwin.
 - scp.c: Add O_BINARY to open calls. Call tcgetpgrp() instead of
   ioctl(..., TIOCGPGRP) to get the controlling terminal.
 - session.c: Close xauthfiles immediatly to avoid implicit file
   lockings on Windows NT systems. Changes in environment setting.
   Disable check for uid 0. Don't call xauth with `.../unix' syntax
   under Cygwin.
 - ssh.c: Disable setrlimit call under Cygwin. Take care for `.exe' file
   extension.

We (the Cygwin team) would be very glad, if the Cygwin support would
become part of the portable OpenSSH.

Have fun,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                        mailto:cygwin at sources.redhat.com
Red Hat, Inc.
mailto:vinschen at cygnus.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openssh-2.1.1p4.p0.gz
Type: application/x-gzip
Size: 7504 bytes
Desc: not available
Url : http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20000801/e4747718/attachment.bin 


More information about the openssh-unix-dev mailing list