From ba1fad65327d20518e98a824864b16a9e8ccbf57 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sat, 4 Sep 2021 15:09:09 -0500 Subject: [PATCH] You can't use logwrapper through the multiplexer because the point is to symlink other command names to it, and toybox will see argv0 as the other command name and do that instead. --- toys/example/logwrapper.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/toys/example/logwrapper.c b/toys/example/logwrapper.c index 036fcd32..0fa5a0ae 100644 --- a/toys/example/logwrapper.c +++ b/toys/example/logwrapper.c @@ -19,6 +19,10 @@ config LOGWRAPPER #define FOR_logwrapper #include "toys.h" +#if CFG_TOYBOX +#warning Must be built standalone to work. +#endif + void logwrapper_main(void) { char *log = getenv("WRAPLOG"), *omnom = basename(*toys.argv), -- 2.39.2