www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/06/21/09:01:15

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=FD1C4uHYiTOwdHAjuuhhTRoAlXo91aximZXaHsTKG3zI4AzYzlSk3
6mmJaLajTdxHBKb7QOjSlUCiqk+Y1FBHSFEzdUYM1gaUxhcsLTR/u5pMW8KfWS6t
N4Ajv0OGWhZhKqDRaJqHmX78DXTgn2OWVKCux1Qyn/5b25rgNY1ckM=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=VrMFP4jA0PShll8zNLvpQD4eMds=; b=sTp8qZVXr/Hy8cJXexlV23ulC6bO
pbjRK41dy3P+TJTdiJoRWVlcTAxDEkuFUzya1e8ECkx6AedgnWHDGXbckVS4sCVN
c3jhbZSYRTXC2ZzbBH+s9f7bEvGM7FY6PlxyQtlo3m7Gj/kUMqTxMn1oNXyIRzxt
Tp05FnjZD/3k/HE=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.1
Date: Fri, 21 Jun 2013 15:00:55 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Problems with file permissions during a build
Message-ID: <20130621130055.GE7362@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <CAMCbSMpykrTRSEnTynYHFra222gnXf58zNw01hFxDDMvNTioVQ AT mail DOT gmail DOT com> <20130621110435 DOT GA2781 AT calimero DOT vinschen DOT de> <CAMCbSMr3eqn6QEisqEpdKhG1B++eifSM+hOQ5W78nFSXR_MeTw AT mail DOT gmail DOT com> <CAMCbSMpOg2tpQjd2Dz1r1XV7mo9q5Kmu_7ecJNe7qcpyGA=gqg AT mail DOT gmail DOT com> <20130621113552 DOT GG25850 AT calimero DOT vinschen DOT de> <CAMCbSModzkQTxoLhZWwYp-K5+1-ciCauyi7vzrd3nHQK1JaNLA AT mail DOT gmail DOT com> <20130621121524 DOT GB7362 AT calimero DOT vinschen DOT de> <CAMCbSMoV4DMuy8oYtx=sO5VhD+FRX--6GJEJ6pbMQXm+wmtiNQ AT mail DOT gmail DOT com> <20130621122934 DOT GD7362 AT calimero DOT vinschen DOT de> <CAMCbSMqgjsrpu1n5SkRnDcnZyyZ7u=B7Kdy10zGfgUn25=1xNA AT mail DOT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <CAMCbSMqgjsrpu1n5SkRnDcnZyyZ7u=B7Kdy10zGfgUn25=1xNA@mail.gmail.com>
User-Agent: Mutt/1.5.21 (2010-09-15)

On Jun 21 14:38, Arjen Markus wrote:
> I noticed that if I use noacl, then I get the correct looking POSIX permissions,
> but the Windows permissions make it impossible to use the file.

I always use "acl" as mount option.

> Try: cat gnulliver.h

  $ pwd
  /home/corinna/tmp/cmake/work
  $ cat src/include/gnulliver.h
  #define GNULLIVER_HOST_FLOAT32_DOUBLE64

> I have had the same problem with a package built via autotools, so it
> is more general
> than CMake. (I first reported this on the CMake list, but they did not
> know the solution)
> 
> I run it on /cygdrive/d, which is my Windows d-disk.

Ok, so I tried under /cygdrive/c and the result is the same, then I
tried under an explicit noacl mount point and the result is still the
same.  The file has always enough permissions and reading it is no
problem at all.

But the default Windows permissions on the parent dir of your build dir
could explain that behavior when using the noacl mount option.  Noacl
means, just let Windows do what it always does and fake the permissions
rather than evaluating them from the given ACL.  Remount again with "acl",
and change the permissions explicitely:

  $ chown -R you.your-group .
  $ chmod -R u+rw,go+r .

Also, make sure your umask is set to a useful value:

  $ umask 22


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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