[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Use O_BINARY to detect whether to pass "rb" to popen
From: |
Filipe Brandenburger |
Subject: |
Re: [PATCH] Use O_BINARY to detect whether to pass "rb" to popen |
Date: |
Fri, 22 May 2015 08:43:39 -0700 |
Hi Bruce,
On Fri, May 22, 2015 at 8:32 AM, Bruce Korb <address@hidden> wrote:
> On 05/22/15 02:15, Andreas Schwab wrote:
>>> {
>>> - FILE * in_fp = popen (cmdline, "r");
>>> + FILE * in_fp = popen (cmdline, "r" TEXT_MODE);
>>
>> Didn't you mean FOPEN_TEXT?
>
> Indeed, and yet it built and went through "make distcheck".
That code was under a !HAVE_WORKING_FORK ifdef so it wasn't being
built... I reproduced the build failure on Linux with ./configure
ac_cv_func_fork_works=no instead.
I also think we should get rid of FOPEN_{READ,WRITE}_BINARY and put
these defines in lib/system.h instead of src/local.h.git.
I'll send you an updated patch with that.
> And, yes, the patch included a non-related issue. Someone came up
> with a tortured uu-encoded file that would cause uudecode to seg fault.
> The patch was against the v4.15.1 tag.
Yeah in that case they should probably be separate patches. I'll send
you a sequence you can grab with "git am". I'm almost done testing
them, so expect them shortly.
Cheers,
Filipe
- Re: [PATCH] Use O_BINARY to detect whether to pass "rb" to popen, (continued)
- Re: [PATCH] Use O_BINARY to detect whether to pass "rb" to popen, Eli Zaretskii, 2015/05/21
- Re: [PATCH] Use O_BINARY to detect whether to pass "rb" to popen, Bruce Korb, 2015/05/21
- Re: [PATCH] Use O_BINARY to detect whether to pass "rb" to popen, Filipe Brandenburger, 2015/05/22
- Re: [PATCH] Use O_BINARY to detect whether to pass "rb" to popen, Eli Zaretskii, 2015/05/22
- Re: [PATCH] Use O_BINARY to detect whether to pass "rb" to popen, Andreas Schwab, 2015/05/22
- Re: [PATCH] Use O_BINARY to detect whether to pass "rb" to popen, Bruce Korb, 2015/05/22
- Re: [PATCH] Use O_BINARY to detect whether to pass "rb" to popen,
Filipe Brandenburger <=
- [PATCH 1/2] Use O_BINARY to detect whether to pass "rb" to popen, Filipe Brandenburger, 2015/05/22
- [PATCH 2/2] Be more careful in guarding against pathological "begin" lines, Filipe Brandenburger, 2015/05/22
- Re: [PATCH 1/2] Use O_BINARY to detect whether to pass "rb" to popen, cowan, 2015/05/22
- Re: [PATCH] Use O_BINARY to detect whether to pass "rb" to popen, Bruce Korb, 2015/05/22
- Re: [PATCH] Use O_BINARY to detect whether to pass "rb" to popen, Filipe Brandenburger, 2015/05/22
- Re: [PATCH] Use O_BINARY to detect whether to pass "rb" to popen, Bruce Korb, 2015/05/23
- Re: [PATCH] Use O_BINARY to detect whether to pass "rb" to popen, Filipe Brandenburger, 2015/05/29
- Re: [PATCH] Use O_BINARY to detect whether to pass "rb" to popen, Bruce Korb, 2015/05/29
- Re: [PATCH 0/4] Cross compiling sharutils, Eric Blake, 2015/05/21
- Re: [PATCH 0/4] Cross compiling sharutils, Eli Zaretskii, 2015/05/21