| Commit message (Collapse) | Author |
|
No idea why it made me do this...
|
|
|
|
|
|
OpenBSD col(1) doesn't understand UTF-8 and will delete all of it.
Stupid, especially when mandoc(1) tells you to use it to remove man
formatting. I shouldn't have to write something so trivial.
|
|
|
|
|
|
|
|
All this really does is make fixing problems more difficult.
|
|
|
|
This is a bit messy. pledge(2) calls based on [1].
[1]: https://kristaps.bsd.lv/kcgi/tutorial6.html
|
|
|
|
This reverts commit a64c3653d5df5e823fcdd07a540e240283816683.
Yeah this really doesn't work on OpenBSD. I kind of got into the
habit of explicitly running less anyway.
|
|
|
|
|
|
Use MSG_PEEK to determine where the request headers end and consume
only up to there, leaving the CGI process to read any request body
directly from the socket.
|
|
And only because kcgi expects it. This is what I wrote originally,
because every HTTP_ variable should be unset between each request,
but this doesn't track them.
|
|
|
|
Useless thing...
|
|
Oops! This whole time I thought OpenBSD xterm for some reason didn't
support focus events. It turns out allowMouseOps: false disables
them by default. Replace the disallowedMouseOps list with everything
but.
|
|
|
|
|
|
|
|
Surprisingly good for something written by a man like a hundred
years ago!
|
|
They were fun to make but I never actually used them.
|
|
I haven't used these in ages.
|
|
Otherwise upload won't actually work.
|
|
For use by Palaver[1]. Unfortunately, at least in the current App
Store version of Palaver, this doesn't work correctly with basic
auth.
[1]: https://palaverapp.com/guides/commands/set.html#ui-image_service
|
|
I hate these things and also this one sucks.
|
|
|
|
This actually speeds things up quite a bit, saving roughly a second
on a big PNG screenshot. Almost all the remaining time is spent in
deflate.
|
|
Interesting to see how my code habits have changed.
|
|
|
|
|
|
|
|
|
|
Also bump the message cap to 1024 because that is ostensibly useful
for replying to older messages.
|
|
|
|
There are probably better things to sort by but title definitely
always exists.
|
|
This makes it even faster. From ~1s on a sqlite3.c amalgamation to
~0.85s.
|
|
Since ctags only ever produces regular expressions of the form
/^re$/ or /^re/ with no other special characters, instead unescape
the pattern and simply use strncmp.
Running on a sqlite3.c amalgamation, the regex version takes ~37s
while the strncmp version takes ~1s, producing identical output.
Big win!
|
|
|
|
|
|
|
|
This fixes badly indented comments.
|
|
|
|
|
|
|
|
|
|
Git upstream bans strcat() with commit:
banned.h: mark strcat() as banned
1b11b64b815db62f93a04242e4aed5687a448748
Signed-off-by: Christian Hesse <mail@eworm.de>
|
|
Git upstream bans strncpy() with commit:
banned.h: mark strncpy() as banned
e488b7aba743d23b830d239dcc33d9ca0745a9ad
Signed-off-by: Christian Hesse <mail@eworm.de>
|
|
Git upstream bans strcat() with commit:
banned.h: mark strcat() as banned
1b11b64b815db62f93a04242e4aed5687a448748
To avoid compiler warnings from gcc 8.1.x we get the hard way.
Signed-off-by: Christian Hesse <mail@eworm.de>
|
|
Git upstream bans sprintf() with commit:
banned.h: mark sprintf() as banned
cc8fdaee1eeaf05d8dd55ff11f111b815f673c58
Signed-off-by: Christian Hesse <mail@eworm.de>
|
|
Git upstream bans strncpy() with commit:
banned.h: mark strncpy() as banned
e488b7aba743d23b830d239dcc33d9ca0745a9ad
Signed-off-by: Christian Hesse <mail@eworm.de>
|
|
Git upstream bans strcpy() with commit:
automatically ban strcpy()
c8af66ab8ad7cd78557f0f9f5ef6a52fd46ee6dd
Signed-off-by: Christian Hesse <mail@eworm.de>
|
|
Git upstream bans sprintf() with commit:
banned.h: mark sprintf() as banned
cc8fdaee1eeaf05d8dd55ff11f111b815f673c58
Signed-off-by: Christian Hesse <mail@eworm.de>
|
|
Git upstream bans strncpy() with commit:
banned.h: mark strncpy() as banned
e488b7aba743d23b830d239dcc33d9ca0745a9ad
Signed-off-by: Christian Hesse <mail@eworm.de>
|
|
This makes the markdown filter generate anchor links for headings.
Signed-off-by: Christian Hesse <mail@eworm.de>
Tested-by: jean-christophe manciot <actionmystique@gmail.com>
|
|
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
|
|
This was introduced in the initial version of this code, way back when
in 2008.
$ curl http://127.0.0.1/cgit/repo/objects/?path=../../../../../../../../../etc/passwd
root:x:0:0:root:/root:/bin/sh
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Reported-by: Jann Horn <jannh@google.com>
|