Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
When the type = CK_LOG_EVENT_SYSTEM_START we can't cast the
event to CkLogSeatSessionAddedEvent. Also
find_first_matching_system_stop_event doesn't care about the
2nd argument so just make it NULL to make it clear we aren't
expecting to pass something of value in.
|
|
GLib's struct GTimeVal declares tv_sec as glong (will break around 2038).
Our struct timeval declares tv_sec as time_t...
warning: passing argument 1 of 'ctime' from incompatible pointer type
Taken from:
http://anoncvs.estpak.ee/cgi-bin/cgit/openbsd-ports/tree/sysutils/consolekit/patches/patch-tools_ck-history_c
|
|
64 makes really long lines using ck-history on the cli, change it
down to 24. If this becomes a problem we can add an option to
display more characters.
|
|
Sets up ConsoleKit2 for translations via GNU gettext. There might
still be a couple strings that need to be marked for translation,
but this sets up the project to use gettext. Fixes bug:
https://bugs.freedesktop.org/show_bug.cgi?id=23482
|
|
When not in compat-mode the max login name length is 64 which
should cover most sane uses. Additionally this patch makes the
command line options show up in --help. Fixes:
https://bugs.freedesktop.org/show_bug.cgi?id=36364
|
|
In the else branch, e is used uninitialized. Move the cast outside
of the if/else block to prevent this.
|
|
Patch written by Rafal Muzylo.
Signed-off-by: Eric Koegel <eric.koegel@gmail.com>
|
|
GDM screenscrapes the output and so we need the full username.
https://bugzilla.gnome.org/show_bug.cgi?id=650330
|
|
Doesn't load any history files it doesn't need to which should
help performance on systems with long histories.
https://bugs.freedesktop.org/show_bug.cgi?id=25660
|
|
Someone needs to add support for non-Linux platforms.
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=23948
|
|
This is consistent with how we write the wtmp records in GDM.
https://bugs.freedesktop.org/show_bug.cgi?id=23944
|
|
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=23279
|
|
The logic is supposed to find any type of removal event. This can
be one of CK_LOG_EVENT_SEAT_SESSION_REMOVED, CK_LOG_EVENT_SYSTEM_START,
CK_LOG_EVENT_SYSTEM_STOP, or CK_LOG_EVENT_SYSTEM_RESTART.
This is used to determine if the removal was normal or RECORD_STATUS_CRASH,
or RECORD_STATUS_DOWN. And indicated in the report log as something like:
"Thu Sep 3 21:28 - down (20:20)"
|
|
|
|
Also enable reporting this information with ck-history.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Refactor some event logging code to share with ck-history. At the
moment the command only prints the events.
|