Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Wed, 12 Feb 2003 11:31:48 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Cc: "Pierre A. Humblet" Subject: Re: unpatching sshd Message-ID: <20030212103148.GQ28314@cygbert.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com, "Pierre A. Humblet" References: <3 DOT 0 DOT 5 DOT 32 DOT 20030211212653 DOT 007f83c0 AT mail DOT attbi DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3.0.5.32.20030211212653.007f83c0@mail.attbi.com> User-Agent: Mutt/1.4i Hi Pierre, On Tue, Feb 11, 2003 at 09:26:53PM -0500, Pierre A. Humblet wrote: > Corinna, > > now that setuid works posixly on Win95, sshd can be unpatched. > > Pierre > > > --- session.c.orig 2003-02-10 10:12:13.000000000 -0500 > +++ session.c 2003-02-10 10:13:08.000000000 -0500 > @@ -1249,9 +1249,6 @@ do_setusercontext(struct passwd *pw) > permanently_set_uid(pw); > #endif > } > -#ifdef HAVE_CYGWIN > - if (is_winnt) > -#endif > if (getuid() != pw->pw_uid || geteuid() != pw->pw_uid) > fatal("Failed to set uids to %u.", (u_int) pw->pw_uid); > } > sorry, no. Remember that you created that patch so that it's backward compatible to previous versions of Cygwin. Testing the uid now would break that. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developer mailto:cygwin AT cygwin DOT com Red Hat, Inc. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/