[PATCH] Updated patch to Cygwin port of 2.1.1p4

Corinna Vinschen vinschen at cygnus.com
Tue Aug 8 21:17:14 EST 2000


I had to update the Cygwin port for two reasons:
- scp could fail because of another textmode/binmode problem.
- Privileged ports are not privileged on Windows and there's
  no coherence between privileged user and uid 0.

So I send the complete patch again with the above changes.

ChangeLog:
==========
 - Makefile.in: Changed to support $EXEEXT transparently. Added
   `cygwin_util.o' to the dependencies of LIBSSH_OBJS.
 - acconfig.h: Add HAVE_CYGWIN.
 - auth-passwd.c: Support getting NT passwords via Cygwin special
   functions. Disable check for uid 0 when HAVE_CYGWIN is set.
 - auth1.c: Reject changing user context if not authenticated via
   password under Windows NT. Disable check for uid 0 when HAVE_CYGWIN
   is set.
 - authfile.c: Disable check for file modes when HAVE_CYGWIN is set.
 - bsd-daemon.c: Avoid possible race condition under Cygwin.
 - bsd-mktemp.c: Define `open' as `binary_open' when HAVE_CYGWIN is set.
 - channels.c: Disable check for uid 0 when HAVE_CYGWIN is set.
 - config.h.in: Add HAVE_CYGWIN.
 - configure.in: Add *-*-cygwin as target. Call AC_EXEEXT now.
 - cygwin_util.c: New file containing `binary_open' and `binary_pipe'
   function.
 - includes.h: Use HAVE_CYGWIN to care for include files. Define `open'
   as `binary_open' and `pipe' as `binary_pipe' when HAVE_CYGWIN is set.
 - loginrec.c: Disable check for uid 0 when HAVE_CYGWIN is set.
 - pty.c: Disable HAVE_VHANGUP explicitely if HAVE_CYGWIN is set.
   Don't call I_PUSH ioctl's under Cygwin.
 - readconf.c: Disable check for uid 0 when HAVE_CYGWIN is set.
 - scp.c: Call tcgetpgrp() instead of ioctl(..., TIOCGPGRP) to get the
   controlling terminal when HAVE_CYGWIN is set.
 - session.c: Close xauthfiles immediatly to avoid implicit file
   lockings on Windows NT systems. Changes in environment setting.
   Disable check for uid 0 when HAVE_CYGWIN is set. Don't call xauth
   with `.../unix' syntax under Cygwin.
 - ssh.c: Disable setrlimit call under Cygwin. Take care for `.exe' file
   extension. Disable check for uid 0 when HAVE_CYGWIN is set.
 - sshd.c: Open pid file explicit binary.

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: 6928 bytes
Desc: not available
Url : http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20000808/1fdbe3e3/attachment.bin 


More information about the openssh-unix-dev mailing list