This is the mail archive of the
mailing list for the Cygwin project.
Re: Multiple users in fetchmail
On Mon, Aug 12, 2002 at 03:36:40PM +0200, Corinna Vinschen wrote:
> On Mon, Aug 12, 2002 at 09:28:48AM -0400, Jason Tishler wrote:
> > Grep-ing the fetchmail code, I get the following:
> > $ grep 'set.*uid' *.c
> > sink.c: seteuid(ctl->uid);
> > sink.c: seteuid(0);
> > So, I presume that I will have to change the second hit above to:
> > seteuid(18);
> uid_t orig_uid = getuid ();
> setuid (ctl->uid);
> seteuid (orig_uid);
Thanks for the above suggestion -- it will be part of the final
Unfortunately, I also have to teach fetchmail that a UID of 18 is
equivalent to 0 (i.e., root) under Cygwin. Without this "ctl->uid"
above is always 18 and *not* the user's real UID. It will take me some
time to track this down... And I hope that the fetchmail maintainer
will accept such a patch...
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html