From owner-freebsd-commit Mon Nov 20 20:31:00 1995 Return-Path: owner-commit Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id UAA24788 for freebsd-commit-outgoing; Mon, 20 Nov 1995 20:31:00 -0800 Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id UAA24759 for cvs-all-outgoing; Mon, 20 Nov 1995 20:30:55 -0800 Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id UAA24744 for cvs-ports-outgoing; Mon, 20 Nov 1995 20:30:52 -0800 Received: (from peter@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id UAA24694 ; Mon, 20 Nov 1995 20:30:38 -0800 Date: Mon, 20 Nov 1995 20:30:38 -0800 From: Peter Wemm Message-Id: <199511210430.UAA24694@freefall.freebsd.org> To: CVS-commiters, cvs-ports Subject: cvs commit: ports/security/ssh/patches patch-ac patch-ad Sender: owner-commit@FreeBSD.ORG Precedence: bulk peter 95/11/20 20:30:36 Added: security/ssh/patches patch-ac patch-ad Log: two minor adjustments to ssh for freebsd specific issues: patch-ac: call setsid() before setlogin() in the child (when emulating rsh) otherwise the setlogin() will fail when/if the proposed setlogin() changes go in. Otherwise it silently fails and may leave the login name of the user session as "root" (depending on how sshd was started). Without the proposed kernel change, it harmlessly sets the login name of the user's session. patch-ad: patch the #ifdef botch that stopped a ssh login from using and updating the lastlog file. This is because we have struct lastlog defined inside utmp.h rather than a lastlog.h include file like it was expecting.