diff options
author | 2016-10-18 20:07:35 +0000 | |
---|---|---|
committer | 2016-10-18 20:07:35 +0000 | |
commit | 4116c25497346b51bc632bd9917bc48a5c2159ef (patch) | |
tree | 734f1f3472fc042995b3b59e05b4c2928465b781 | |
parent | Clear cell entry with grid_default_entry not grid_default_cell. (diff) | |
download | wireguard-openbsd-4116c25497346b51bc632bd9917bc48a5c2159ef.tar.xz wireguard-openbsd-4116c25497346b51bc632bd9917bc48a5c2159ef.zip |
Use the files in /var/db/acpi instead of trying to run acpidump.
ok brynet@
-rw-r--r-- | usr.bin/sendbug/sendbug.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/usr.bin/sendbug/sendbug.c b/usr.bin/sendbug/sendbug.c index 6ac97306d32..b06a823855b 100644 --- a/usr.bin/sendbug/sendbug.c +++ b/usr.bin/sendbug/sendbug.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sendbug.c,v 1.76 2016/05/18 19:10:26 jca Exp $ */ +/* $OpenBSD: sendbug.c,v 1.77 2016/10/18 20:07:35 kettenis Exp $ */ /* * Written by Ray Lai <ray@cyth.net>. @@ -601,10 +601,6 @@ hwdump(FILE *ofp) char *cmd, *acpidir; size_t len; - if (gethostname(buf, sizeof(buf)) == -1) - err(1, "gethostname"); - buf[strcspn(buf, ".")] = '\0'; - if (asprintf(&acpidir, "%s%sp.XXXXXXXXXX", tmpdir, tmpdir[strlen(tmpdir) - 1] == '/' ? "" : "/") == -1) err(1, "asprintf"); @@ -612,9 +608,9 @@ hwdump(FILE *ofp) err(1, "mkdtemp"); if (asprintf(&cmd, "echo \"\\npcidump:\"; pcidump -xxv; " - "echo \"\\nacpidump:\"; cd %s && acpidump -o %s; " + "echo \"\\nacpidump:\"; cd %s && cp /var/db/acpi/* .; " "for i in *; do b64encode $i $i; done; rm -rf %s", - acpidir, buf, acpidir) == -1) + acpidir, acpidir) == -1) err(1, "asprintf"); if ((ifp = popen(cmd, "r")) != NULL) { |