This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
unpatching sshd
- From: "Pierre A. Humblet" <Pierre dot Humblet at ieee dot org>
- To: cygwin-patches at cygwin dot com
- Date: Tue, 11 Feb 2003 21:26:53 -0500
- Subject: unpatching sshd
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);
}