Mail Archives: cygwin/2002/08/12/16:17:38
Corinna,
On Mon, Aug 12, 2002 at 08:03:16PM +0200, Corinna Vinschen wrote:
> On Mon, Aug 12, 2002 at 11:19:49AM -0400, Jason Tishler wrote:
> > 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...
>
> I used a new define called ROOT_UID in two projects:
>
> #ifdef __CYGWIN__
> #define ROOT_UID 18
> #else
> #define ROOT_UID 0
> #endif
>
> Just a suggestion,
Thanks for the hint -- I had already found it and was planning on
using it.
It's probably too late, but why doesn't Cygwin use a UID of 0 instead of
18 for system? Wouldn't this make porting setuid() programs to Cygwin
easier?
Thanks,
Jason
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -