This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: FindFirstFile fails for some network directories
- From: Orgad Shaneh <orgads at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 9 Dec 2015 11:43:01 +0200
- Subject: Re: FindFirstFile fails for some network directories
- Authentication-results: sourceware.org; auth=none
- References: <CAGHpTBKEWFa8M1KN6_vqrBT6WOjVpmOCUqP-LHBYK=FApg2fJg at mail dot gmail dot com> <CAGHpTB+O-Z3Mir-4ZV7Wmh3dqo=rqfy+-CAW_KCE2hQdCjhB5w at mail dot gmail dot com> <CAGHpTB+cGrO6xrsaR=LoUdTAvmiHWJYty9=+ErJ2aW-FDpbbqA at mail dot gmail dot 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