diff options
author | helg <helg@cvs.openbsd.org> | 2017-12-11 12:01:56 +0000 |
---|---|---|
committer | helg <helg@cvs.openbsd.org> | 2017-12-11 12:01:56 +0000 |
commit | 5c86e84ed2fc7dfc54a2dd42491cd11e26629f79 (patch) | |
tree | cdf12d1b63cd0094752e0fd533755d8e0b1f0cf2 /gnu/lib | |
parent | 2868b8d6cd10181dc07d4214f7e356cb7c36e466 (diff) |
The fuse_opt_match(3) library function does not match options correctly.
libfuse supports option templates of the following form that can be used
to automatically parse arguments supplied on the command line.
"-p " argument that takes an option e.g -p 22 or -p22
"-p %x" argument that takes an option parsed like sscanf(3)
"cache=yes" matches -ocache=yes or -o cache=yes
"cache=%s" matches -ocache=<string> or -o cache=<string>
"cache=" matches same as above but value is passed to option proc
"noatime" matches -onoatime or -o atime
For example, it does not match options of the form "-p 22" or
"cache=yes" to the corresponding templates "-p " and "cache=yes". This
patch fixes that and updates the regression tests accordingly.
ok mpi@
Diffstat (limited to 'gnu/lib')
0 files changed, 0 insertions, 0 deletions