]> andersk Git - gssapi-openssh.git/blobdiff - openssh/uidswap.c
Import of OpenSSH 3.7.1p2
[gssapi-openssh.git] / openssh / uidswap.c
index 3f13f9bf4a6f913b9536215efba5398e1b04c46a..9e161d0f08056c57e42d6e20bf805a3b9e21edb2 100644 (file)
@@ -191,10 +191,12 @@ permanently_set_uid(struct passwd *pw)
                    (u_int)pw->pw_gid);
        }
 
+#ifndef HAVE_CYGWIN
        /* Try restoration of UID if changed (test clearing of saved uid) */
        if (old_uid != pw->pw_uid && 
            (setuid(old_uid) != -1 || seteuid(old_uid) != -1))
                fatal("%s: was able to restore old [e]uid", __func__);
+#endif
 
        /* Verify UID drop was successful */
        if (getuid() != pw->pw_uid || geteuid() != pw->pw_uid) {
This page took 0.031491 seconds and 4 git commands to generate.