On 25.02.2026 08:53, Michael Tokarev wrote: ...
--- a/src/w.c +++ b/src/w.c @@ -1144,8 +1144,6 @@ } free(sessions_list); - } else if (!sd_booted()) { -#else - } else { #endif + } else { #ifdef HAVE_UTMPX_H setutxent();The same approach has taken by the upstream in 4.0.6 version. There, the code is slightly different in other ways, but the idea is the same.
Actually this is just one hunk less in w_sessions_without_sd - this
#else..endif..}else{ code is from it.
/mjt

