A minimal but flexible directory listing server
Find a file
Laslo Hunhold 33def953e9
Improve tokenization for m- and v-flag parsing
I wasn't happy with the tokenizer for the m- and v-flags, because it
was handling space-separated input and there was no way to have spaces
within the tokens themselves. This is a fine detail, but I didn't want
to impose this restriction where it could be solved (path prefixes or
folder names can very well contain spaces).

Given it's a bit quirky to handle multiple arguments to a single flag
in the command line, especially when parameters are optional, this
alternative wasn't further considered and I instead implemented a
tokenizer that allows escaping spaces with '\'.

While at it, I clarified the manual regarding this point.

Signed-off-by: Laslo Hunhold <dev@frign.de>
2019-02-24 21:50:39 +01:00
arg.h Correct arg.h license 2018-07-16 11:49:51 +02:00
config.def.h Specify UTF-8 for non-binary content-types 2019-01-02 17:04:23 +01:00
config.mk Be extra pedantic again and remove all warnings 2018-03-05 00:30:53 +01:00
http.c Change target prefix mapping argument order 2019-02-24 00:53:03 +01:00
http.h Refactor the single source file into multiple modules 2018-02-04 21:27:33 +01:00
LICENSE Fix one byte NULL stack overflow 2018-07-16 22:48:20 +02:00
main.c Improve tokenization for m- and v-flag parsing 2019-02-24 21:50:39 +01:00
Makefile Refactor the single source file into multiple modules 2018-02-04 21:27:33 +01:00
quark.1 Improve tokenization for m- and v-flag parsing 2019-02-24 21:50:39 +01:00
resp.c Specify UTF-8 for non-binary content-types 2019-01-02 17:04:23 +01:00
resp.h Refactor the single source file into multiple modules 2018-02-04 21:27:33 +01:00
sock.c Add netinet/in.h to sock.c 2018-03-05 10:24:46 +01:00
sock.h Refactor the single source file into multiple modules 2018-02-04 21:27:33 +01:00
util.c Use sizeof() - 1 rather than strlen() 2018-07-02 18:41:29 +02:00
util.h Update the documentation to reflect the new flag-centric usage 2018-03-05 09:51:29 +01:00