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.
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:
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
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