From owner-freebsd-current Sun Jun 11 11:55:26 2000 Delivered-To: freebsd-current@freebsd.org Received: from coredump.lovett.com (hub.lovett.com [216.60.121.161]) by hub.freebsd.org (Postfix) with ESMTP id 1D87437B545; Sun, 11 Jun 2000 11:55:22 -0700 (PDT) (envelope-from ade@lovett.com) Received: from ade by coredump.lovett.com with local (Exim 3.14 #1) id 131CtH-00048d-00; Sun, 11 Jun 2000 13:55:23 -0500 Date: Sun, 11 Jun 2000 13:55:23 -0500 From: Ade Lovett To: current@FreeBSD.org, kris@FreeBSD.org Subject: OpenSSH b0rked 6/11 Message-ID: <20000611135523.E343@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG From today's buildworld: [...] cc -O -pipe -DLIBWRAP -DLOGIN_ACCESS -I/usr/src/secure/usr.sbin/sshd/../../../usr.bin/login -DSKEY -c /usr/src/secure/usr.sbin/sshd/../../../crypto/openssh/session.c /usr/src/secure/usr.sbin/sshd/../../../crypto/openssh/session.c: In function `do_exec_pty': /usr/src/secure/usr.sbin/sshd/../../../crypto/openssh/session.c:651: warning: passing arg 2 of `auth_ttyok' from incompatible pointer type /usr/src/secure/usr.sbin/sshd/../../../crypto/openssh/session.c: In function `do_child': /usr/src/secure/usr.sbin/sshd/../../../crypto/openssh/session.c:866: syntax error before `*' /usr/src/secure/usr.sbin/sshd/../../../crypto/openssh/session.c:868: `lc' undeclared (first use in this function) /usr/src/secure/usr.sbin/sshd/../../../crypto/openssh/session.c:868: (Each undeclared identifier is reported only once /usr/src/secure/usr.sbin/sshd/../../../crypto/openssh/session.c:868: for each function it appears in.) *** Error code 1 Following patch fixes it: Index: session.c =================================================================== RCS file: /home/src/FreeBSD/src/crypto/openssh/session.c,v retrieving revision 1.5 diff -u -r1.5 session.c --- session.c 2000/06/10 22:32:57 1.5 +++ session.c 2000/06/11 18:52:35 @@ -857,14 +857,15 @@ extern char **environ; struct stat st; char *argv[10]; +#ifdef LOGIN_CAP + login_cap_t *lc; +#endif /* login(1) is only called if we execute the login shell */ if (options.use_login && command != NULL) options.use_login = 0; #ifdef LOGIN_CAP - login_cap_t *lc; - lc = login_getpwclass(pw); if (lc == NULL) lc = login_getclassbyname(NULL, pw); -aDe -- Ade Lovett, Austin, TX. ade@FreeBSD.org FreeBSD: The Power to Serve http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message