mirror of
https://github.com/troglobit/finit.git
synced 2026-10-02 05:52:48 +07:00
initctl: Support for utmp show FILE
This patch adds support for showing a log rotated (uncompressed) UTMP/WTMP file in initctl. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
+4
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user