delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/07/04/17:38:28

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:from:date:message-id:subject:to
:content-type; q=dns; s=default; b=oj3VMepYvl3gGGBSBWFiePFzye/4M
lXw7P0aCNDX5HImdpirXrRciRTVmGRi4AfsddjPt7Pi6zRdb4Vy6W426BcEtK5vl
H0XdlajdtsRxyQM8szIJhlNNbfTbOPUkczc9cINwx70G8DMcdrYAtqT/LjW4kf7N
gPQMOBGPynPuzU=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:from:date:message-id:subject:to
:content-type; s=default; bh=i3xjvdLJ6Ft1O/NJf5w6xH9T/FM=; b=wen
hYYAewO8JZFPhwXXuM/aUIiFKG5/xLYrTk5J53aQSSMEsKh3cVrr2v7o08TzJ/FV
12/378/ZP5AkgFX/YbygiZ3AhcgFqR9B8OxuTQ9O+BHx5bALD4VqwLNHBANMrPO4
KBMttdyksKF9wfDnN2JO7kTP+lFpNHg7BNTseOUE=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=
X-HELO: mail-oi0-f44.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=GnL5UnQeInAwD0kv5TwoUjgMPAza9u/efACGAX+csdU=; b=VfWQI3jDsH9gTHOWlBMPL0A45GUvug8644BMShmzVPY46M9TupT0uQmhOiZSXTSbkN wAVjOhvwvIBhgYBLoCl7oxibnCUrZtK0WrGvShV43DxITzJo5/aUL9T87VDOWribBfbA 1hhcBmMYWxqE5ImMgi/EOKgaNyfkjIw41h9Q8cTD2Zv/CJ+FQHVhigTE9CwH6cVppL/w OmecAA0HAvBuRaLuYMwQv1D27kfPTImw98Y7k1mlbFci5BIDJ3yB8gBhmqJ9lhC52/FG h7NABu8XGyd1gOGG9lCmkmYdy2jEPXUaGeHLiLCnoCEYigYPG0EKHvpVh+/c/79riCPA OseA==
X-Gm-Message-State: AKS2vOyTq/dPUl/ZCc3SHO7BuofSizsM72+sy4HYvaXxbeufNKUl/2ZN 9XAOKHOcuW+efjCCKjKUJ01PqKsj9E8peE0=
X-Received: by 10.202.223.194 with SMTP id w185mr23147467oig.108.1499204291371; Tue, 04 Jul 2017 14:38:11 -0700 (PDT)
MIME-Version: 1.0
From: comic fans <comicfans44 AT gmail DOT com>
Date: Wed, 5 Jul 2017 05:38:11 +0800
Message-ID: <CAKzW8om1v0Bk2SO40YyFjntxCAifK0YYzcpRwmOKsuPVA+pPgA@mail.gmail.com>
Subject: Re: scandirat return dirents of parent dir
To: cygwin AT cygwin DOT com

I've already submitted a patch for this but your fix is much
quicker... confirmed this snapshot resolved the problem. Thank you.
>> Hello:
>>      I've found this problem when compile
>> casync(https://github.com/systemd/casync.git) in cygwin,workflow to
>> trigger this :
>>     rootfd=open(".",O_CLOEXEC|O_RDONLY|O_NOCTTY);
>>     scandirat(rootfd,".", firstLevelDirEnts......);
>>     foreach dirent in firstLevelDirEnts:
>>          if dirent is dir:
>>              subdirfd=openat(rootfd,
>>                   dirent->d_name,O_RDONLY|O_CLOEXEC|O_NOCTTY|O_NOFOLLOW);
>>              scandirat(subdirfd,".",  secondLevelDirEnts......);
>>
>>      at this time, secondLevelDirEnts should be files in subdir, but
>> in cygwin, secondLevelDirEnts is just same as firstLevelDirEnts.
>>
>>       This problem didn't happen in linux , nor win10 WSL,  but
>> happens in both cygwin/msys2.
>
>First I thought you stumbled over the problem that the first two entries
>returned by scandirat are "." and "..", but on closer investigation I
>saw the problem.
>
>I pushed a fix to the git repo and uploaded new developer snapshots
>to https://cygwin.com/snapshots/  Please try.
>
>
>Thanks,
>Corinna
>
>--

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