dropbear
dropbear copied to clipboard
Dropear on musl uses utmp/wtmp invalidated paths from paths.h
As I understand it, Dropbear built with musl and --disable-pututline should support direct write to wtmp (and utmp too, but that's another bug).
It seems that Dropbear takes the path to wtmp from musl's include/paths.h, which is #define _PATH_WTMP "/dev/null/wtmp", an intentionally invalid path. I'm not sure what the expected behaviour should be, but using that surely isn't good.
Maybe look at busybox? (Busybox writes to /var/log/wtmp - I checked - , but I couldn't find where that path is defined.)
Thanks.
I was wrong. Busybox uses the same paths too.