Call for testing for coming 2.9 release.

Corinna Vinschen vinschen at redhat.com
Wed Apr 25 23:53:32 EST 2001


On Tue, Apr 24, 2001 at 01:01:14PM -0500, mouring at etoh.eviladmin.org wrote:
> 
> 
> If we can get people to test their platforms against the last snapshot/cvs
> tree I'd be greatful. (http://www.openssh.com/portable.html)
> 
> I know NeXT platform has problems.  I'm going to spend tonight looking at
> it.
> 
> Also, take a moment to see what manpage type ./configure decided for your
> system and if it's 'cat' please let us know.
> 
> 
> Thanks.

Hi,

the following patches are necessary to build the latest OpenSSH from
CVS on Cygwin.

The patch in `Makefile.in' is needed to be able to build in another dir
than the sourcedir.

Cygwin lacks `setgroups' and the header file `arpa/nameser.h'.

I couldn't check that it runs due to a eminent lack of time. I will
try to check it 'til tomorrow.

Corinna



Index: Makefile.in
===================================================================
RCS file: /cvs/openssh_cvs/Makefile.in,v
retrieving revision 1.172
diff -u -p -r1.172 Makefile.in
--- Makefile.in	2001/04/18 18:04:22	1.172
+++ Makefile.in	2001/04/25 13:49:27
@@ -123,9 +123,9 @@ logintest: logintest.o $(LIBCOMPAT) libs
 
 $(MANPAGES)::
 	if test "$(MANTYPE)" = "cat"; then \
-		manpage=`echo $@ | sed 's/\.[1-9]$$/\.0/'`; \
+		manpage=`echo $(srcdir)/$@ | sed 's/\.[1-9]$$/\.0/'`; \
 	else \
-		manpage=$@; \
+		manpage=$(srcdir)/$@; \
 	fi; \
 	if test "$(MANTYPE)" = "man"; then \
 		$(FIXPATHSCMD) $${manpage} | $(PERL) $(srcdir)/mdoc2man.pl > $@.out; \
Index: uidswap.c
===================================================================
RCS file: /cvs/openssh_cvs/uidswap.c,v
retrieving revision 1.19
diff -u -p -r1.19 uidswap.c
--- uidswap.c	2001/04/08 18:38:05	1.19
+++ uidswap.c	2001/04/25 13:49:27
@@ -68,10 +68,11 @@ temporarily_use_uid(struct passwd *pw)
  		if (user_groupslen < 0)
  			fatal("getgroups: %.100s", strerror(errno));
  	}
+#ifndef HAVE_CYGWIN
   	/* Set the effective uid to the given (unprivileged) uid. */
 	if (setgroups(user_groupslen, user_groups) < 0)
 		fatal("setgroups: %.100s", strerror(errno));
-	pw->pw_gid = pw->pw_gid;
+#endif
 	if (setegid(pw->pw_gid) < 0)
  		fatal("setegid %u: %.100s", (u_int) pw->pw_gid,
  		    strerror(errno));
@@ -95,8 +96,10 @@ restore_uid(void)
 	/* Set the effective uid back to the saved uid. */
 	if (seteuid(saved_euid) < 0)
 		fatal("seteuid %u: %.100s", (u_int) saved_euid, strerror(errno));
+#ifndef HAVE_CYGWIN
 	if (setgroups(saved_egroupslen, saved_egroups) < 0)
 		fatal("setgroups: %.100s", strerror(errno));
+#endif
 	if (setegid(saved_egid) < 0)
 		fatal("setegid %u: %.100s", (u_int) saved_egid, strerror(errno));
 	temporarily_use_uid_effective = 0;
Index: openbsd-compat/inet_ntop.c
===================================================================
RCS file: /cvs/openssh_cvs/openbsd-compat/inet_ntop.c,v
retrieving revision 1.1
diff -u -p -r1.1 inet_ntop.c
--- openbsd-compat/inet_ntop.c	2001/04/12 21:35:53	1.1
+++ openbsd-compat/inet_ntop.c	2001/04/25 13:49:27
@@ -34,7 +34,9 @@ static char rcsid[] = "$OpenBSD: inet_nt
 #include "openbsd-compat/fake-socket.h"
 #include <netinet/in.h>
 #include <arpa/inet.h>
+#ifndef HAVE_CYGWIN
 #include <arpa/nameser.h>
+#endif
 #include <string.h>
 #include <errno.h>
 #include <stdio.h>

-- 
Corinna Vinschen
Cygwin Developer
Red Hat, Inc.
mailto:vinschen at redhat.com



More information about the openssh-unix-dev mailing list