[Toybox] [PATCH] tests: fix for empty /etc/passwd or /etc/group.

enh enh at google.com
Wed Jul 24 14:54:33 PDT 2019


It turns out some Android devices have an empty /etc/passwd and/or
/etc/group, which was defeating the previous workaround. Switch to
testing the intention more directly: we'll try the file in /etc, and if
that didn't work, we'll assume we need a workaround.
---
 tests/chgrp.test | 11 ++++-------
 tests/chown.test | 17 +++++++----------
 2 files changed, 11 insertions(+), 17 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-tests-fix-for-empty-etc-passwd-or-etc-group.patch
Type: text/x-patch
Size: 2066 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20190724/542419a9/attachment-0002.bin>


More information about the Toybox mailing list