delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/07/04/07:09:45

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=CIbxmB1Qyi1jaLvSyz6sA27jcmMN5
nu8VDBxPHmUR4sjnMKjqiyeE3N01OZjzQ5leRFEzzY3dbHBsmFZV9RKzPHhlxD+Z
c668UmrMnhJ6TAtMhuTSqwN8693LwOKeIXAGalkGF3JTZk0z9uvbDJtjL74J1T97
Arqi28T8wn6twY=
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=3FOljHANcU1sQqU7PErbScEK2IE=; b=i2R
i1ieDe26K5ExrP1hJ69j2v3qAgwB2jicyYTWSiUGgORoSE6jL8oREXkejdJ9yq1W
33cFu3nusJyDzISI0Bou7u2YIqju6GDuNP/3tXxbL/qJA7H8VCurfnCDdKZGhQjo
WQSY510U4ifcgWoG5ogaDs2SfQfNYZNWEuP+ZkDc=
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.1 required=5.0 tests=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=wsl
X-HELO: mail-oi0-f50.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=yWEmdnU7yflAQcb2JYv3iNjQ6hWgY/X24Dc+47P9cFk=; b=VmuiA6N7mO0VHFDTvG8Ds+M3P8AKmgyX8mACElHC04b6S6ojyPBJ28wJjEvKMXLA0L 1mGoDeayt2mkdFOjYQCaP5kZfc54AQxy2YVLmFqakp8t59AvscFhH35NvZd3oUSBTVUZ IeOyDbe0bgLcBJsNkZ2tOc6lRDbk1Ac5qM6Yq7/R9ofQ5Yf6YIKIb+SyRjwukcwueYHP l1LH8mtPnp+3m26C7MSA6+Iu4v0KLwHF5mUt5f9qENw/zc7zUmoKs0qEBB4gWd6Oq2Hi d1/JycwnzT2G472zzw2L4EuI87aSOpCFuGaPQmsZT5mKjfZEa76sdD8cumytSCS/KuU7 sLrQ==
X-Gm-Message-State: AKS2vOxg6Ic2OSA6pgPbmFB5BlWqcxMxx48+FdQwlfAbKIlkc1i27whs eKLWkWgKwkJRniyPiRi+74BESzeacedw
X-Received: by 10.202.81.197 with SMTP id f188mr17807359oib.173.1499166557893; Tue, 04 Jul 2017 04:09:17 -0700 (PDT)
MIME-Version: 1.0
From: comic fans <comicfans44 AT gmail DOT com>
Date: Tue, 4 Jul 2017 19:09:17 +0800
Message-ID: <CAKzW8omBpxg5vAnaj7Xv5Q0wRjzmGQwEQ07wugxkGC-wNV9hBQ@mail.gmail.com>
Subject: scandirat return dirents of parent dir
To: cygwin AT cygwin DOT com

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.

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