public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: ls shows different permissions for the same file
Date: Wed, 12 Sep 2012 17:40:00 -0000	[thread overview]
Message-ID: <5050A56B.6090704@cygwin.com> (raw)
In-Reply-To: <AB5C244567184949B9C73F32BBC4703704DD31C4@BL2PRD0410MB373.namprd04.prod.outlook.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

  reply	other threads:[~2012-09-12 15:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-12 12:47 Boemker, Tim
2012-09-12 17:40 ` Larry Hall (Cygwin) [this message]
2012-09-12 19:05 Boemker, Tim
2012-09-13  0:41 ` Larry Hall (Cygwin)
2012-09-13 14:30   ` Boemker, Tim
2012-09-13 23:57     ` Larry Hall (Cygwin)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5050A56B.6090704@cygwin.com \
    --to=reply-to-list-only-lh@cygwin.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).