patch-src_ck-manager_c 1.0 KB

1234567891011121314151617181920212223242526
  1. $OpenBSD: patch-src_ck-manager_c,v 1.9 2017/02/06 08:15:02 ajacoutot Exp $
  2. From 6dcb5b04ecca9fcdb13b518924f6835909038b1c Mon Sep 17 00:00:00 2001
  3. From: Antoine Jacoutot <ajacoutot@openbsd.org>
  4. Date: Wed, 25 Jan 2017 04:26:43 +0100
  5. Subject: [PATCH] Add a few more display manager users.
  6. --- src/ck-manager.c.orig Wed Jan 25 04:14:39 2017
  7. +++ src/ck-manager.c Wed Jan 25 04:15:58 2017
  8. @@ -1112,9 +1112,12 @@ session_is_real_user (CkSession *session,
  9. username = get_user_name (uid);
  10. /* filter out GDM/SDDM/KDM user */
  11. - if (g_strcmp0 (username, "gdm") == 0 ||
  12. - g_strcmp0 (username, "sddm") == 0 ||
  13. - g_strcmp0 (username, "kdm") == 0) {
  14. + if (g_strcmp0 (username, "gdm") == 0 ||
  15. + g_strcmp0 (username, "_gdm") == 0 ||
  16. + g_strcmp0 (username, "sddm") == 0 ||
  17. + g_strcmp0 (username, "_sddm") == 0 ||
  18. + g_strcmp0 (username, "kdm") == 0 ||
  19. + g_strcmp0 (username, "_kdm") == 0) {
  20. ret = FALSE;
  21. goto out;
  22. }