patch-src_ck-sysdeps-openbsd_c 780 B

12345678910111213141516171819
  1. $OpenBSD: patch-src_ck-sysdeps-openbsd_c,v 1.23 2017/02/06 08:15:02 ajacoutot Exp $
  2. From 34b1a8f577fe8cd224129f5924c8b810c7c17ba8 Mon Sep 17 00:00:00 2001
  3. From: Antoine Jacoutot <ajacoutot@openbsd.org>
  4. Date: Wed, 28 Sep 2016 21:23:28 +0200
  5. Subject: [PATCH] OpenBSD: adapt to recent kvm(3) restrictions
  6. --- src/ck-sysdeps-openbsd.c.orig Wed Sep 28 14:08:07 2016
  7. +++ src/ck-sysdeps-openbsd.c Wed Sep 28 14:08:09 2016
  8. @@ -248,7 +248,7 @@ ck_unix_pid_get_env_hash (pid_t pid)
  9. struct kinfo_proc p;
  10. int i;
  11. - kd = kvm_openfiles (NULL, NULL, NULL, O_RDONLY, errbuf);
  12. + kd = kvm_openfiles (NULL, NULL, NULL, KVM_NO_FILES, errbuf);
  13. if (kd == NULL) {
  14. g_warning ("kvm_openfiles failed: %s", errbuf);
  15. return NULL;