public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Orgad Shaneh <orgads@gmail.com>
To: cygwin@cygwin.com
Subject: Re: FindFirstFile fails for some network directories
Date: Wed, 09 Dec 2015 09:43:00 -0000	[thread overview]
Message-ID: <CAGHpTBJeR9H7YkW=_U7U287vuSoHco6X4Z=iEBLRBo4dRRy58Q@mail.gmail.com> (raw)
In-Reply-To: <CAGHpTB+cGrO6xrsaR=LoUdTAvmiHWJYty9=+ErJ2aW-FDpbbqA@mail.gmail.com>

On Wed, Aug 19, 2015 at 8:28 AM, Orgad Shaneh <orgads@gmail.com> wrote:
>
> On Wed, Aug 19, 2015 at 8:46 AM, Orgad Shaneh <orgads@gmail.com> wrote:
> > Working capture: https://gist.github.com/orgads/d2681881668afb9cb08f
> > Failing capture: https://gist.github.com/orgads/4f0ea2b26cfd64f4353d
>
> I just found another SMB1 linux server, which does work[1].
>
> It first has a "NT Create AndX" request for path \, which succeeds.
> Then it issues Trans2 FIND_FIRST2 request for the real path (\a).
>
> This issue might be related to the Archive bit which is set on aclnas01.
>
> - Orgad
>
> [1] https://gist.github.com/orgads/e76a00c2cc0fc8a43d95

Hi,

After investigation, I found that the root cause for this problem is
set_cygwin_privileges, which sets SE_RESTORE_PRIVILEGE and
SE_BACKUP_PRIVILEGE for the process during initialization.

Commenting out these 2 lines solves the problem for me.

Can you tell why are they needed at all? There is a comment there:

    Allow to access all files, independent of their ACL settings.

What does it mean?

- Orgad

--
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:[~2015-12-09  9:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-17 12:03 Orgad Shaneh
2015-08-19  5:46 ` Orgad Shaneh
2015-08-19  6:28   ` Orgad Shaneh
2015-12-09  9:43     ` Orgad Shaneh [this message]
2015-12-09 10:46       ` Corinna Vinschen

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='CAGHpTBJeR9H7YkW=_U7U287vuSoHco6X4Z=iEBLRBo4dRRy58Q@mail.gmail.com' \
    --to=orgads@gmail.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).