[Toybox] [PATCH] cpio: fixes for Android kernel build.

enh enh at google.com
Wed Aug 19 14:51:24 PDT 2020


Allow -pd to work by changing -p from an option that takes an
argument to an option that implies there will be an argument (that
is, `-pd x` is `-p -d x` with x being the directory for -p, rather
than `-p d x` with d being the directory, as we previously interpreted
it).

Fix -d (aka --make-directories) to not be a no-op. Previously we
acted as if this was always on.

Accept --quiet and effectively just ignore it, since toybox cpio
doesn't seem to produce any output that --quiet would suppress.
---
 tests/cpio.test   |  6 ++++++
 toys/posix/cpio.c | 19 +++++++++++++------
 2 files changed, 19 insertions(+), 6 deletions(-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20200819/df01c026/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-cpio-fixes-for-Android-kernel-build.patch
Type: application/octet-stream
Size: 4129 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20200819/df01c026/attachment-0002.obj>


More information about the Toybox mailing list