[PATCH] permanently_set_uid fails on Cygwin :-(
Darren Tucker
dtucker at zip.com.au
Sat Sep 20 11:43:15 EST 2003
Corinna Vinschen wrote:
> +#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
Is this OK, or should we have a define like "OS_CANT_DROP_PRIVS"? Are
there any other OSes (that we support) to which this might apply?
--
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69
Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.
More information about the openssh-unix-dev
mailing list