Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b7475a4c authored by Elliott Hughes's avatar Elliott Hughes
Browse files

Add the "sys" group for tests.

It's useful to have a group that shares a numeric id with Linux and
macOS. "root" doesn't count because group 0 is actually called "wheel"
on the BSDs, and macOS has "daemon" and "kmem" as its groups 1 and 2.

This lets us have toybox tar tests that have the same results on all
supported OSes without special handling.

Test: treehugger
Change-Id: I4704d6f9ada84f3065831a099b34d1c20c4c6b03
parent e37c15e9
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -41,9 +41,11 @@
 */

#define AID_ROOT 0 /* traditional unix root user */
/* The following are for LTP and should only be used for testing */
#define AID_DAEMON 1 /* traditional unix daemon owner */
#define AID_BIN 2    /* traditional unix binaries owner */

/* The following are for tests like LTP and should only be used for testing. */
#define AID_DAEMON 1 /* Traditional unix daemon owner. */
#define AID_BIN 2    /* Traditional unix binaries owner. */
#define AID_SYS 3    /* A group with the same gid on Linux/macOS/Android. */

#define AID_SYSTEM 1000 /* system server */