233 ms·
It feels ok for me. It's kind of the Unix way, with all the /bin/true, /bin/false, /dev/zero, etc. That /mnt/apps/bin/blink may just be exactly that "loop with
by TeMPOraL 11y ago
It feels ok for me. It's kind of the Unix way, with all the /bin/true, /bin/false, /dev/zero, etc. That /mnt/apps/bin/blink may just be exactly that "loop with two delays and presumably a write to a GPIO device in the middle", written in C or even hand-written in ASM.
- dsr_ 11y agoThe problem isn't 'blink'. The problem is calling it via system() and handing unsanitized user input to system().
- JdeBP 11y agoI wonder why it calls daemon() immediately before calling system().
- userbinator 11y agoThat's too narrow in scope. The fact that they decided to make such a trivial function an externally invoked binary is also a large contributing factor, and should not be overlooked. There would otherwise be no need to use system(), "sanitize" user input, etc.