[Toybox] [PATCH] Don't use xfdopen

2013-08-04 Thread idunham
grep in hg tip won't build without this patch. xfdopen is not needed (we already have the file open, and we wouldn't want to die early if by some peculiar chance that were irrelevant). diff -r b570b2bfbf7d toys/pending/grep.c --- a/toys/pending/grep.c Sun Aug 04 01:22:49 2013 -0500 +++ b/to

Re: [Toybox] [PATCH] Don't use xfdopen

2013-08-07 Thread Rob Landley
On 08/04/2013 07:30:00 PM, idun...@lavabit.com wrote: grep in hg tip won't build without this patch. xfdopen is not needed (we already have the file open, and we wouldn't want to die early if by some peculiar chance that were irrelevant). fdopen() failing is basically malloc() failing. I.E. thi