From 5ea87c65c428408e214d47a85b04443b1cbdedad Mon Sep 17 00:00:00 2001 From: joerg Date: Fri, 2 Nov 2001 19:01:03 +0000 Subject: Setting optind to 0 before calling getopt(3) is a stupid idea; it would cause argv[0] to be evaluated as a program option, which is usually not what we want. ;-) Just leave it alone, the library is supposed to DTRT anyway. --- benchmarks/bonnie++/files/patch-bonnie++.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 benchmarks/bonnie++/files/patch-bonnie++.cpp (limited to 'benchmarks') diff --git a/benchmarks/bonnie++/files/patch-bonnie++.cpp b/benchmarks/bonnie++/files/patch-bonnie++.cpp new file mode 100644 index 0000000..9aa4622 --- /dev/null +++ b/benchmarks/bonnie++/files/patch-bonnie++.cpp @@ -0,0 +1,10 @@ +--- bonnie++.cpp.orig Mon Aug 20 00:39:12 2001 ++++ bonnie++.cpp Fri Nov 2 19:54:31 2001 +@@ -172,7 +172,6 @@ + #endif + + int int_c; +- optind = 0; + while(-1 != (int_c = getopt(argc, argv, "bd:fg:m:n:p:qr:s:u:x:y")) ) + { + switch(char(int_c)) -- cgit v1.1