[Toybox] [PATCH] hostname: fix behavior when in jail.

Rob Landley rob at landley.net
Wed Jan 30 10:56:12 PST 2019


On 1/30/19 11:13 AM, Ed Maste wrote:
> On Sat, 19 Jan 2019 at 14:42, enh via Toybox <toybox at lists.landley.net> wrote:
>>
>> Only -d and -f should cause a DNS lookup. The rest should just act
>> directly on the result of gethostname(3). Encountered with the AOSP
>> buildbots' use of nsjail, but tested with both the Debian hostname and
>> toybox hostname thus:
> 
> Thanks, this also fixes hostname (no args) on FreeBSD for me.

I'm not trying to get freebsd tests to pass this release.

I dunno what to do about test suite things like the "root" group being called
"wheel", except maybe running sed against etc/groups to read the name which
seems overcoplicated and brittle?

Rob



More information about the Toybox mailing list