From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 94225 invoked by alias); 9 Dec 2015 09:43:07 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 94168 invoked by uid 89); 9 Dec 2015 09:43:06 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.3 required=5.0 tests=AWL,BAYES_05,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-lf0-f52.google.com Received: from mail-lf0-f52.google.com (HELO mail-lf0-f52.google.com) (209.85.215.52) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Wed, 09 Dec 2015 09:43:04 +0000 Received: by lfdl133 with SMTP id l133so30131566lfd.2 for ; Wed, 09 Dec 2015 01:43:01 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.25.169.212 with SMTP id s203mr1466591lfe.134.1449654181172; Wed, 09 Dec 2015 01:43:01 -0800 (PST) Received: by 10.25.21.228 with HTTP; Wed, 9 Dec 2015 01:43:01 -0800 (PST) In-Reply-To: References: Date: Wed, 09 Dec 2015 09:43:00 -0000 Message-ID: Subject: Re: FindFirstFile fails for some network directories From: Orgad Shaneh To: cygwin@cygwin.com Content-Type: text/plain; charset=UTF-8 X-SW-Source: 2015-12/txt/msg00115.txt.bz2 On Wed, Aug 19, 2015 at 8:28 AM, Orgad Shaneh wrote: > > On Wed, Aug 19, 2015 at 8:46 AM, Orgad Shaneh 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