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=Cb7VMZ1qx7/mWUilaArAjyZl2tqvyPWYPD1Xd3SYhZQWU8IO33Q7F | |
dUWCV08B6R2C7UgOenVmrOKZTtH2xebiuIKzj7thjJEeFPO3PWkIJeH9WyRN0IUv | |
dVRLKQXoaQSKgbLozbT7xG2AM+eF7dwNorZuPywvmKRygjRNyjlzXo= | |
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=piZnUL8hEB2NwbB0HiTeTZLa09k=; b=dKwOaX1AIoOKPpWgOd5ydGcIJpeI | |
plpSSS0TPprMs3dulB/sdrCUJtww5bzcmaKSX50Ak7LMDYnIptQbpe+Ge5QE4QO/ | |
Amc4V7LIo9Y5pIDUGOPLlV9B+FH2wiDA8uTpQXg4G+0CDbfYPEfyiiLAIwQyY4tu | |
0q0pvpDv7nKujR0= | |
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-Spam-SWARE-Status: | No, score=-101.2 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=mails, H*r:mreue108, executive |
X-HELO: | mout.kundenserver.de |
Date: | Wed, 10 Oct 2018 13:22:40 +0200 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: grep < fifo fails |
Message-ID: | <20181010112240.GL20270@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <d56a12c77ecc441ca7dc2e8e1862145c AT prosa DOT dk> <d8e9dbf61b6299cae6db6da3a25eabb8 AT smtp-cloud9 DOT xs4all DOT net> <bb7dfc32e67366d58d10eb4dc2eda7f5 AT smtp-cloud7 DOT xs4all DOT net> <8100972155fcccd61852c0c9e48cd11b AT smtp-cloud9 DOT xs4all DOT net> <4749b23a0374bf264ad46a0c7466e73e AT smtp-cloud9 DOT xs4all DOT net> <81eb7a95-1334-a421-46e3-64c51800947c AT redhat DOT com> |
MIME-Version: | 1.0 |
In-Reply-To: | <81eb7a95-1334-a421-46e3-64c51800947c@redhat.com> |
User-Agent: | Mutt/1.9.2 (2017-12-15) |
--ee6FjwWxuMujAVRe Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Oct 8 10:03, Eric Blake wrote: > On 10/8/18 3:24 AM, Houder wrote: > > grep fails on Cygwin because lseek() on Cygwin fails to recognize > > that it is applied to a FIFO. As result of that, it returns EINVAL > > in errno, where it should return ESPIPE. > >=20 > > Receiving the wrong value in errno forces reset() (in src/grep.c) > > to return false, upon which grep fails. > >=20 > > Before v2.27 of grep, a call to S_ISREG(st->st_mode) in reset() > > prevented the call of lseek() and made reset() return true. > >=20 > > The call to S_ISREG() has been removed in v2.27 of grep. > >=20 > > The solution would be either to correct Cygwin's executive or to >=20 > s/executive/dll/ >=20 > > insert a Cygwin-specific kludge in grep (in reset() ). >=20 > I see no reason to do a one-off kludge to my build of grep (since that do= es > not scale - every other app that also makes decisions based on errno valu= es > would have to make the same kludge), compared to just fixing cygwin1.dll = for > everyone. >=20 > But thanks for isolating the problem! I pushed a patch. Thanks for tracking this down, Henri! Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --ee6FjwWxuMujAVRe Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlu94QAACgkQ9TYGna5E T6BG5g//U+3pEb0nyABsBara0BkW+RB+FuncqWIOFW23paXW5a22rXu4fxMqS3Gu mJaFDEHhHW6xQA/iUqo+FrCgd612nMLXp+g+/3TVJmkDeltreJgrIc9hk2Yk3Dm0 bQX36TEGlCLgWbvYgvLC1gr0Xpk+JRa5yYfODfjryy+UFYxr19EOUphWvd6eMJic An2l2H31EjvC1hvqAyrTLXjpDqvhbLMzkAZ2fH/rPXnu5PgwBJEZAoirDGVglc1i y5fd5A4N5m9PKJB+Bs3+QM1pVk0uneLnwUmjfTwmmbIc53Yf7TV2YSMRHbH6YkNI StG/HHbgEcISjXTDoSFk8Kwe6Rbz1oKysd3EJsW20H0HbIbh9MvvTN5wzuQy44M2 1zdgylAvJthwcpPIoJ4jwUnns37OIUCRAt+W4kGn/bhyLo9aAAvVCML1lwLs79kQ Yz4RnfeBbEyB9huJblhpRu0j/7owXl9F2gftQcp5S567msWl2krFy+yxtFD7L0Io M1zmL/8TGDuSVAVetorTucEK+c7bvgtwiN8thdb2Lyc8JYlbtC3B/ktqjNVp8ugX s1MAWy+K/ambj1i16kMpHdzexdFppqQA631ArAcZhR1iyWmelo7cXtlQR4T4N+bF awILfyg6ToaXZMZNSeRQ2+R4JyIY9Jmt2H3L6UU1qSFVT3yBI2M= =pfsl -----END PGP SIGNATURE----- --ee6FjwWxuMujAVRe--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |