[Toybox] [PATCH] Fix the potential fd leak in file(1).

enh enh at google.com
Thu Mar 3 10:24:35 PST 2016


This avoids duplicating the xputs call, which I assume was the sticking
point with my previous suggestion.

Also remove the now-duplicated command name in the tests, and add a couple
more tests.
---
 tests/file.test     | 23 ++++++++++++++++-------
 toys/pending/file.c | 10 +++++-----
 2 files changed, 21 insertions(+), 12 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-the-potential-fd-leak-in-file-1.patch
Type: text/x-patch
Size: 3287 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20160303/c217f96a/attachment.bin>


More information about the Toybox mailing list