[Toybox] [PATCH] Specify owner when testing tar with /dev/null

Rob Landley rob at landley.net
Tue Dec 5 23:46:46 PST 2023


On 10/6/23 18:52, Colin Cross via Toybox wrote:
> /dev/null is not owned by root when the toybox tests are run inside
> a sandbox in the Android CI infrastructure.  Specify the owner as
> nobody to make the tar results consistent.

Sorry for the delay, window got buried.

The problem here is I need a test where toybox is detecting ownership other than
the current owner, and "/dev/null is owned by root" is one of the few files I
can be reasonably sure about. It's true on every Linux distro, true on FreeBSD
and MacOS (even if the _group_ is "wheel" in those two, the _owner_ is root)...

Who _does_ own /dev/null in your test environment?

Rob


More information about the Toybox mailing list