delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/11/22/07:11:36

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <00ce01c0547e$03bdb270$275c100a@actfs.co.uk>
From: "Malcolm Boekhoff" <Malcolm DOT Boekhoff AT actfs DOT co DOT uk>
To: "Cygwin News Group" <cygwin AT sources DOT redhat DOT com>
References: <20001121224203 DOT A22908 AT MageNet DOT com> <3A1BAF09 DOT 570D240D AT redhat DOT com>
Subject: Re: fetchmail
Date: Wed, 22 Nov 2000 12:16:17 -0000

I got fetchmail working by setting the "ntea" option in CYGWIN environment variable and then chmodding ~/.fetchmailrc.

> "Julia A . Case" wrote:
> > I downloaded the source to fetchmail and it compiled out of the box.  But
> > when I went to run it, it complained that .fetchmailrc must have the
> > permissions of 0710...  I tried chmod 0710 .fetchmailrc but that didn't
> > change the permissions, is there a way under win98 to change the
> > permissions?
>
> Unfortunately not. You will have to patch fetchmail to ignore
> permissions (the easy way) or to check if setting permissions is
> possible dependent of the OS, the file system and the CYGWIN
> setting (the hard way).
>
> I did this in OpenSSH, too. If you download the sources from
> latest/openssh on your favorite mirror, you will find a source file
> named `cygwin_util.c' which contains a function `check_ntsec' which
> manages exactly that check.
>
> The you'll have to incorporate that function into your fetchmail
> port and change the above permission check which is similar to
>
> if ((st.st_mode & 067) != 0)
>
> to something like
>
>     #ifdef CYGWIN
> if (check_ntsec (filename))
>     #endif
> if ((st.st_mode & 067) != 0)
>
> Hope, that helps,
> Corinna
>
> --
> Corinna Vinschen                  Please, send mails regarding Cygwin to
> Cygwin Developer                        mailto:cygwin AT sources DOT redhat DOT com
> Red Hat, Inc.
> mailto:vinschen AT redhat DOT com
>
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com




--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019