lxdm-0.4.1-fix-pam-100-cpu.patch 444 B

1234567891011121314151617
  1. --- lxdm-0.4.1.orig/src/lxdm.c
  2. +++ lxdm-0.4.1/src/lxdm.c
  3. @@ -1458,8 +1458,12 @@ void lxdm_do_login(struct passwd *pw, ch
  4. setenv("XDG_SESSION_COOKIE", ck_connector_get_cookie(s->ckc), 1);
  5. }
  6. #endif
  7. + int i;
  8. + for(i=2;i<256;i++)
  9. + g_source_remove(i);
  10. +
  11. char** env, *path;
  12. - int n_env,i;
  13. + int n_env;
  14. n_env = g_strv_length(environ);
  15. /* copy all environment variables and override some of them */
  16. env = g_new(char*, n_env + 1 + 13);