delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/09/12/11:09:25

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=1.6 required=5.0 tests=AWL,BAYES_50,BOTNET,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,TW_RW,TW_WX
X-Spam-Check-By: sourceware.org
Message-id: <5050A56B.6090704@cygwin.com>
Date: Wed, 12 Sep 2012 11:08:27 -0400
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com>
Reply-to: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120907 Thunderbird/15.0.1
MIME-version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: ls shows different permissions for the same file
References: <AB5C244567184949B9C73F32BBC4703704DD31C4 AT BL2PRD0410MB373 DOT namprd04 DOT prod DOT outlook DOT com>
In-reply-to: <AB5C244567184949B9C73F32BBC4703704DD31C4@BL2PRD0410MB373.namprd04.prod.outlook.com>
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

On 9/12/2012 8:20 AM, Boemker, Tim wrote:
> ls reports different permissions for the same file, depending on whether I provide a Windows-form path or a UNIX-form path:
>
> $ /bin/ls -ldi c:/apps/amq-versions/amq.12.1.0-RC42/conf /cygdrive/c/apps/amq-versions/amq.12.1.0-RC42/conf
> 7318349394635879 drwxrwxrwx+ 1 tboemker Domain Users 0 Sep 12 07:56 /cygdrive/c/apps/amq-versions/amq.12.1.0-RC42/conf
> 7318349394635879 drwxr-xr-x  1 tboemker Domain Users 0 Sep 12 07:56 c:/apps/amq-versions/amq.12.1.0-RC42/conf
>
> $ /bin/ls --version
> ls (GNU coreutils) 8.15
> Packaged by Cygwin (8.15-1)
> ...
>
> Am I missing something, or is this a bug?

No, no bug.  If you specify the POSIX path, you get full POSIX permission
emulation.  If you provide Windows paths (or the mount point under which
the file in question lives is mounted with the 'noacl' option), you get
default, hard-coded POSIX permissions.

-- 
Larry

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

--
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