| delorie.com/archives/browse.cgi | search |
| 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:date:from:to:subject:message-id:reply-to | |
| :references:mime-version:content-type:in-reply-to; q=dns; s= | |
| default; b=CT03rr51TFDWb9lydZ05iW+urkLgBrtl39uZKd887YgxI6/yWeTZN | |
| FtKbgQCl8aoMJz6LWRenZhO9soV+RQ6w0/dJO98fmBlKvegIFYGXR2QAUrPoyYDQ | |
| RW7ASikKOaYT/tW7SSxj2vY4h/wnHQPuQQj1GH+iRenGEKtZOkD/BA= | |
| 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:date:from:to:subject:message-id:reply-to | |
| :references:mime-version:content-type:in-reply-to; s=default; | |
| bh=+4lmPSzaJmYU4a+HlblB+W6p6xk=; b=v9JtT5DEc23Bd1kN1BrjkuehCCmC | |
| lNfFYZTKYgV4oqar0gM/lijvGJJJFDM1qYkUVjPkl9tVvR1oFeLxTACLlPwlJ42z | |
| 1GjCkTfB38efysJmtmBV/f9o0Cfv3RgjWLrCdHlN+I12Ln9GzpCux6pxrJOmGjPA | |
| 1SAFbKszyNVm+5M= | |
| 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=-101.9 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=H*c:application |
| X-HELO: | drew.franken.de |
| Date: | Wed, 5 Jul 2017 10:01:50 +0200 |
| From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: scandirat return dirents of parent dir |
| Message-ID: | <20170705080150.GB7642@calimero.vinschen.de> |
| Reply-To: | cygwin AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| References: | <CAKzW8om1v0Bk2SO40YyFjntxCAifK0YYzcpRwmOKsuPVA+pPgA AT mail DOT gmail DOT com> |
| MIME-Version: | 1.0 |
| In-Reply-To: | <CAKzW8om1v0Bk2SO40YyFjntxCAifK0YYzcpRwmOKsuPVA+pPgA@mail.gmail.com> |
| User-Agent: | Mutt/1.8.0 (2017-02-23) |
--Bn2rw/3z4jIqBvZU
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Jul 5 05:38, comic fans wrote:
> 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=3Dopen(".",O_CLOEXEC|O_RDONLY|O_NOCTTY);
> >> scandirat(rootfd,".", firstLevelDirEnts......);
> >> foreach dirent in firstLevelDirEnts:
> >> if dirent is dir:
> >> subdirfd=3Dopenat(rootfd,
> >> dirent->d_name,O_RDONLY|O_CLOEXEC|O_NOCTTY|O_NOFOLLO=
W);
> >> 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.
I only saw your patch on cygwin-patches hours later, sorry.
Thanks for testing!
Corinna
--=20
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
--Bn2rw/3z4jIqBvZU
Content-Type: application/pgp-signature; name="signature.asc"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQIcBAEBCAAGBQJZXJzuAAoJEPU2Bp2uRE+gEWwP/3tIid24Q1Z/2MiV57h/aMvG
oQ249UvcbNnjMaY/apX0sti8NIJXsIIY6zqNUUYdHEw74wbAojtayMCzlM5iFBFX
/yv3011NzXcEhpBXFKXMnSgo7OP7+GU3vV5Qq6gM1s+3FlLaxB4mtBuRBvsP+N8o
ZAtcYP3W1JNoHf09ztjzYMrwrYwRqYbgn7f2Au6JI8j2h+I+UlybZOft2+tMdmEo
IoDrvUXlwE9yfmlYMtZFhS0AFG0aAXan3GSIO/QnhPJBau49Ajhwumbj9Tc5OgVS
R9/kGO3pLcb20gyK04soK+A019AEPZf036IDxp6IZ74TpjGhOfcz0+ckt/4gFSzl
rBRyZ+LKqanpsFy6e4yI0chkFtFQc/cxyvxdv1DNa9ShDa0+523LmaLHeRpWJr1u
4/oc5/UCPIie1l1uIWKk3UkZ25jhHEaTpd9HulSgRRwEXm/Kumx4qS1z2REN3Aab
pQxmlwqlZ/uVXGtey2DMUrW1OeoVkYKLjxnYVVKOAt75wt4yYYMk+rqRtbOfFpxX
jUrG44l300siVG/D802KXIvWWKXRkg6stPVjqxss0T2mrIg3/vGh+dVCUMFM38Ik
0De1DHak6SUJSzQ7O2N9pXIUOJaYkMSoy1zvq65yPR5rfA9+k3BvUTcarByH2kU5
7OtM2HrnTbCXbAaT/Wq6
=B9A8
-----END PGP SIGNATURE-----
--Bn2rw/3z4jIqBvZU--
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |