mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
[PATCH] benchmarks/rawio has a bug in commandline option parser
run rawio with -s option(size of raw disk device), as follows: % rawio -a -s 30029328k -v 1 /dev/ad4c returned: Invalid length specification: -v in source rawio.c, it skips parsing argument at one point. PR: ports/58567 Submitted by: OOTOMO Hiroyuki <ootomo@za.wakwak.com> Approved by: maintainer timeout
This commit is contained in:
parent
f97ac58e97
commit
04a340f14c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=97848
2 changed files with 15 additions and 5 deletions
|
@ -8,6 +8,7 @@
|
|||
|
||||
PORTNAME= rawio
|
||||
PORTVERSION= 1.2
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= benchmarks
|
||||
MASTER_SITES= ftp://ftp.lemis.com/pub/
|
||||
|
||||
|
|
|
@ -1,6 +1,15 @@
|
|||
--- rawio.c~ Fri Mar 29 16:52:17 2002
|
||||
+++ rawio.c Fri Mar 29 16:53:49 2002
|
||||
@@ -358,7 +358,11 @@
|
||||
--- rawio.c.orig Sun Nov 26 19:28:19 2000
|
||||
+++ rawio.c Fri Jan 9 23:53:28 2004
|
||||
@@ -423,7 +423,7 @@
|
||||
printf ("No arg to n flag\n");
|
||||
break;
|
||||
}
|
||||
- filesize = sizespec (argv [++i]);
|
||||
+ filesize = sizespec (arg);
|
||||
break;
|
||||
|
||||
case 'S':
|
||||
@@ -580,7 +580,11 @@
|
||||
childinfo = mmap (NULL,
|
||||
nproc * sizeof (struct childinfo),
|
||||
PROT_READ | PROT_WRITE,
|
||||
|
@ -10,5 +19,5 @@
|
|||
+ MAP_SHARED | MAP_ANON,
|
||||
+#endif
|
||||
-1,
|
||||
0 );
|
||||
if (childinfo == MAP_FAILED)
|
||||
(off_t) 0 );
|
||||
#else
|
||||
|
|
Loading…
Add table
Reference in a new issue