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
Corinna Vinschen wrote:> > 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.Sorry folks, I forgot to mention where the binaries and patched sources are accessible via ftp: OpenSSH-2.1.1p4: ftp://ftp.franken.de/pub/win32/develop/gnuwin32/cygwin/porters/Vinschen_Corinna/V1.1.3 files: openssh-2.1.1p4-2.README README openssh-2.1.1p4-2.tar.gz binary openssh-2.1.1p4-2-src.tar.gz patched sources OpenSSL-0.9.5 (sorry, no `a' version yet): ftp://ftp.franken.de/pub/win32/develop/gnuwin32/cygwin/porters/Vinschen_Corinna/V1.1.1 files: openssl-0.9.5.README README openssl-0.9.5.tar.gz binary openssl-0.9.5-src.tar.gz original sources openssl-0.9.5.diff diffs Hope, that helps, 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