This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: unpatching sshd
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin at cygwin dot com
- Cc: "Pierre A. Humblet" <Pierre dot Humblet at ieee dot org>
- Date: Wed, 12 Feb 2003 11:31:48 +0100
- Subject: Re: unpatching sshd
- References: <3.0.5.32.20030211212653.007f83c0@mail.attbi.com>
- Reply-to: cygwin at cygwin dot com
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@cygwin.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/