bug-gnu-utils
[Top][All Lists]
Advanced

[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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]