unpatching sshd

Pierre A. Humblet Pierre.Humblet@ieee.org
Wed Feb 12 02:28:00 GMT 2003


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);
 }




More information about the Cygwin-patches mailing list