delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/09/26/10:30:35

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Date: Fri, 26 Sep 2003 16:30:14 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Cc: Charles Wilson <cygwin AT cwilson DOT fastmail DOT fm>
Subject: Re: Problem with SETFACL and shortcuts?
Message-ID: <20030926143014.GO22787@cygbert.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com,
Charles Wilson <cygwin AT cwilson DOT fastmail DOT fm>
References: <864DF0E09F2F6244A46CD70C8DEB4EB903D963 AT viecs0 DOT global DOT corp DOT euram DOT com>
Mime-Version: 1.0
In-Reply-To: <864DF0E09F2F6244A46CD70C8DEB4EB903D963@viecs0.global.corp.euram.com>
User-Agent: Mutt/1.4.1i

On Fri, Sep 26, 2003 at 04:06:32PM +0200, Harre Mark VIE wrote:
> Hi,
> 
> I was just working on a script to set dafault permissions and noticed
> something interesting.  I use the find command to get the file name of
> all files/directories and then reset the permissions usiong setfacl.
> This works fine except on a couple of files. I get the same error from a
> bash shell using getfacl.  For example I can use ls to list the file but
> get an error using getfacl
> 
> $ ls /lib/terminfo
> /lib/terminfo
> 
> $ getfacl /lib/terminfo
> getfacl: No such file or directory
> 
> Couldn't find any info in the faq or google.  Anyone else seen this
> behaviour and know a fix?

This is a problem of the terminfo link itself.  It's defined like this:

$ ls -l /lib/terminfo
lrwxrwxrwx 1 user grp 125 Sep 7 21:26 /lib/terminfo -> ../share/terminfo

The problem is that the terminfo directory is actually /usr/share/terminfo,
not /share/terminfo.  So the relative symlink only works correct when
resolved from /usr/lib/terminfo, not from /lib/terminfo:

$ getfacl /usr/lib/terminfo
# file: /usr/lib/terminfo
# owner: user
# group: grp
user::rwx
group::rwx
group:SYSTEM:rwx
mask:rwx
other:---
default:user::---
default:group:SYSTEM:rwx
default:group:grp:rwx
default:mask:rwx


Chuck, would it make sense to change the symlink to an absolute one?

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
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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