[Toybox] [PATCH] id: fix Android issues.

enh enh at google.com
Mon Nov 4 21:29:08 PST 2019


glibc doesn't set errno when getpw* fails, so the perror_exit() looked
fine. bionic sets ENOENT and the trailing "No such file or directory"
looks silly, so switch to error_exit().

Additionally, the default format tests fail on Android because of
SELinux (but for a different reason than usual!). There's no id
--no-context flag, so use sed to just throw away any SELinux context.
---
 tests/id.test   | 8 +++++---
 toys/posix/id.c | 2 +-
 2 files changed, 6 insertions(+), 4 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-id-fix-Android-issues.patch
Type: text/x-patch
Size: 2320 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20191104/063cd283/attachment-0001.bin>


More information about the Toybox mailing list