Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Tue, 13 Aug 2002 12:38:01 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: Multiple users in fetchmail Message-ID: <20020813123801.V17250@cygbert.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20020811140204 DOT 3f1780c9 DOT jim DOT george AT blueyonder DOT co DOT uk> <20020812103113 DOT H17250 AT cygbert DOT vinschen DOT de> <20020812132847 DOT GB1928 AT tishler DOT net> <20020812153640 DOT R17250 AT cygbert DOT vinschen DOT de> <20020812151949 DOT GA2168 AT tishler DOT net> <20020812200316 DOT U17250 AT cygbert DOT vinschen DOT de> <20020812202054 DOT GA1104 AT tishler DOT net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020812202054.GA1104@tishler.net> User-Agent: Mutt/1.3.22.1i On Mon, Aug 12, 2002 at 04:20:54PM -0400, Jason Tishler wrote: > 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? Only partly. There are also applications which ask for the user name to be "root". Either way is wrong and non-portable. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developer mailto:cygwin AT cygwin DOT com Red Hat, Inc. -- 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/