diff --git a/src/initctl.c b/src/initctl.c index d3739b8c..bc4dfa00 100644 --- a/src/initctl.c +++ b/src/initctl.c @@ -407,8 +407,11 @@ int utmp_show(char *file) return 0; } -static int do_utmp(char *UNUSED(cmd)) +static int do_utmp(char *file) { + if (file) + return utmp_show(file); + return utmp_show(_PATH_WTMP) || utmp_show(_PATH_UTMP); }