projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
4e6ea2f
)
Use strict matching for --section command line option
author
Jens Axboe
<jens.axboe@oracle.com>
Thu, 5 Mar 2009 20:14:21 +0000
(21:14 +0100)
committer
Jens Axboe
<jens.axboe@oracle.com>
Thu, 5 Mar 2009 20:14:21 +0000
(21:14 +0100)
Don't limit to string length of passed in section, otherwise we could
be matching more than one section.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
init.c
patch
|
blob
|
blame
|
history
diff --git
a/init.c
b/init.c
index 6fdd2116601191ff08297cd7759a809a86c03fb8..4ae3baf0af67b85d88eeaa476f3135011649755c 100644
(file)
--- a/
init.c
+++ b/
init.c
@@
-608,7
+608,7
@@
static int skip_this_section(const char *name)
if (!strncmp(name, "global", 6))
return 0;
- return str
ncmp(job_section, name, strlen(job_section)
);
+ return str
cmp(job_section, name
);
}
static int is_empty_or_comment(char *line)