diff options
author | Eric Koegel <eric.koegel@gmail.com> | 2016-03-01 20:37:40 +0300 |
---|---|---|
committer | Eric Koegel <eric.koegel@gmail.com> | 2016-03-19 18:15:46 +0300 |
commit | 53144732d094c8beec9c63f796f7aaa7e0961bf0 (patch) | |
tree | f051117d8c6c0167f8f3e589ec57fc9c7938f09e | |
parent | c067d48fbb3394507d3b0629a8f348986aabba03 (diff) | |
download | ConsoleKit2-53144732d094c8beec9c63f796f7aaa7e0961bf0.tar.gz |
login_session_id will be G_MAXUINT32 when unset
This will fix the display of ck-list-sessions on a 64-bit
system and CK2 won't try to compare to a bogus ssid.
-rw-r--r-- | src/ck-sysdeps-linux.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ck-sysdeps-linux.c b/src/ck-sysdeps-linux.c index d3d1b5a..08b91da 100644 --- a/src/ck-sysdeps-linux.c +++ b/src/ck-sysdeps-linux.c @@ -666,8 +666,8 @@ ck_unix_pid_get_login_session_id (pid_t pid, goto out; } - /* Will be G_MAXULONG if it isn't set */ - if (ulong_value == G_MAXULONG) { + /* Will be G_MAXUINT32 if it isn't set */ + if (ulong_value == G_MAXUINT32) { goto out; } |