TOYBOX_DEBUG warns about lack of suid bit when running a STAYROOT command, but it shouldn't warn just because the multiplexer command "toybox" is stayroot.
diff --git a/main.c b/main.c
index 0cd1cb2..bf89ef2 100644
--- a/main.c
+++ b/main.c
@@ -71,7 +71,8 @@
if (!(which->flags & TOYFLAG_STAYROOT)) {
if (uid != euid) xsetuid(euid=uid);
- } else if (CFG_TOYBOX_DEBUG && uid) error_msg("Not installed suid root");
+ } else if (CFG_TOYBOX_DEBUG && uid && which != toy_list)
+ error_msg("Not installed suid root");
if ((which->flags & TOYFLAG_NEEDROOT) && euid) error_exit("Not root");
}