projects
/
platform
/
upstream
/
xz.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98f3cac
)
Allow extra commas in filter-specific options on xz command line.
author
Lasse Collin
<lasse.collin@tukaani.org>
Tue, 14 Jul 2009 18:10:36 +0000
(21:10 +0300)
committer
Lasse Collin
<lasse.collin@tukaani.org>
Tue, 14 Jul 2009 18:10:36 +0000
(21:10 +0300)
This may slightly ease writing scripts that construct
filter-specific option strings dynamically.
src/xz/options.c
patch
|
blob
|
history
diff --git
a/src/xz/options.c
b/src/xz/options.c
index
3d5d887
..
8ac6750
100644
(file)
--- a/
src/xz/options.c
+++ b/
src/xz/options.c
@@
-69,6
+69,13
@@
parse_options(const char *str, const option_map *opts,
char *name = s;
while (true) {
+ if (*name == ',') {
+ if (*++name == '\0')
+ break;
+
+ continue;
+ }
+
char *split = strchr(name, ',');
if (split != NULL)
*split = '\0';