[Toybox] [CLEANUP] openvt/deallocvt: reindent, remove unneeded O_RDWR

2014-03-29 Thread Isaac Dunham
openvt tries opening several devices to get an fd that points to the current console, without a need for read or write permissions. O_RDWR implies that both O_RDONLY and O_WRONLY would work, so skip it. Reindent. -- I also have a large patch queue for the getty version Ashwini Sharma submitted.

[Toybox] Trivial patch for find --help

2014-03-29 Thread Isaac Dunham
find: clarify and expand the help for find -type diff --git a/toys/pending/find.c b/toys/pending/find.c index ab17dec..58e554b 100644 --- a/toys/pending/find.c +++ b/toys/pending/find.c @@ -12,14 +12,18 @@ config FIND bool find default n help -usage: find [dir] [options] +usage:

[Toybox] [NEW TOYS] hardware rescan tool, FIFREEZE/FITHAW wrapper...(possibly out of scope?)

2014-03-29 Thread Isaac Dunham
I've written a couple of new toys that might well be out of scope, but might be interesting or useful for parts. I'll describe the commands and the use cases. 1-hwrs: This was originally intended as a SUID helper cludge for my Acer Aspire One, which has a PCI-bus based SD card reader that only

Re: [Toybox] [PATCH] cpio: fix -it

2014-03-29 Thread Rob Landley
On 03/29/14 00:46, Isaac Dunham wrote: On Thu, Mar 27, 2014 at 07:10:45AM -0500, Rob Landley wrote: On 03/26/14 12:13, Isaac Dunham wrote: Fix cpio -it: don't close(fd) unless we opened it. Ooh, good catch. (Applied.) It's hard to get the code right without a good test case, and with