summaryrefslogtreecommitdiff
path: root/benchmarks
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2000-12-14 02:40:19 +0000
committerwiz <wiz@pkgsrc.org>2000-12-14 02:40:19 +0000
commit7660772db870aa5c08b3081ae195fd32da5c82bf (patch)
treeb15272d49d34221d4d2215f6464872e5483c95d7 /benchmarks
parentf8ae0fd523732bfe68d0bb77808e1ad0740dd79d (diff)
downloadpkgsrc-7660772db870aa5c08b3081ae195fd32da5c82bf.tar.gz
Handle uname -a output better. Fixes pkg/11273.
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/iozone/files/patch-sum4
-rw-r--r--benchmarks/iozone/patches/patch-ab21
2 files changed, 20 insertions, 5 deletions
diff --git a/benchmarks/iozone/files/patch-sum b/benchmarks/iozone/files/patch-sum
index 9908132e5f1..b5a7c9153d0 100644
--- a/benchmarks/iozone/files/patch-sum
+++ b/benchmarks/iozone/files/patch-sum
@@ -1,4 +1,4 @@
-$NetBSD: patch-sum,v 1.1 2000/05/02 15:17:47 pooka Exp $
+$NetBSD: patch-sum,v 1.2 2000/12/14 02:40:19 wiz Exp $
MD5 (patch-aa) = 1ff601947a7d3c66c4ee3e6526b35e0e
-MD5 (patch-ab) = 6c08479fba2d6b722e41701c4b47f3ef
+MD5 (patch-ab) = e2a898934f0c641e980afa306250f6a5
diff --git a/benchmarks/iozone/patches/patch-ab b/benchmarks/iozone/patches/patch-ab
index b6b73bb94d1..aa2ec5764c7 100644
--- a/benchmarks/iozone/patches/patch-ab
+++ b/benchmarks/iozone/patches/patch-ab
@@ -1,7 +1,22 @@
-$NetBSD: patch-ab,v 1.1 2000/05/02 15:17:47 pooka Exp $
+$NetBSD: patch-ab,v 1.2 2000/12/14 02:40:20 wiz Exp $
---- iozone.c.orig Wed Sep 15 00:38:16 1999
-+++ iozone.c Tue May 2 17:23:53 2000
+--- iozone.c.orig Tue Sep 14 23:38:16 1999
++++ iozone.c
+@@ -908,10 +908,10 @@
+ case 'M': /* Report machine name and OS */
+ pi=popen("uname -a", "r");
+ fread(reply,99,1,pi);
+- m=reply;
+- while(*m!='\n') /* Strip after new line */
+- m++;
+- *m=0;
++ reply[98] = '\0';
++ m=strchr(reply, '\n'); /* Strip after new line */
++ if (m != NULL)
++ *m=0;
+ printf("\n\tMachine = %s\n",reply);
+ pclose(pi);
+ break;
@@ -6130,7 +6130,11 @@
#endif
exit(119);