diff options
author | Antoine Jacoutot <ajacoutot@openbsd.org> | 2017-01-25 04:26:43 +0100 |
---|---|---|
committer | Antoine Jacoutot <ajacoutot@openbsd.org> | 2017-01-25 04:26:43 +0100 |
commit | 6dcb5b04ecca9fcdb13b518924f6835909038b1c (patch) | |
tree | c7f1ded374f9eca20680e692e4b37e4f0f89c077 /src | |
parent | 7ff66b661063be1d0a45932fd07bd9004626e5c4 (diff) | |
download | ConsoleKit2-6dcb5b04ecca9fcdb13b518924f6835909038b1c.tar.gz |
Add a few more display manager users.
On OpenBSD, system users start with an underscore.
Diffstat (limited to 'src')
-rw-r--r-- | src/ck-manager.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/ck-manager.c b/src/ck-manager.c index 0064838..c14e178 100644 --- a/src/ck-manager.c +++ b/src/ck-manager.c @@ -1267,9 +1267,12 @@ session_is_real_user (CkSession *session, username = get_user_name (uid); /* filter out GDM/SDDM/KDM user */ - if (g_strcmp0 (username, "gdm") == 0 || - g_strcmp0 (username, "sddm") == 0 || - g_strcmp0 (username, "kdm") == 0) { + if (g_strcmp0 (username, "gdm") == 0 || + g_strcmp0 (username, "_gdm") == 0 || + g_strcmp0 (username, "sddm") == 0 || + g_strcmp0 (username, "_sddm") == 0 || + g_strcmp0 (username, "kdm") == 0 || + g_strcmp0 (username, "_kdm") == 0) { ret = FALSE; goto out; } |