Commit Graph

889 Commits

Author SHA1 Message Date
Omar Polo 7b27af8388 log when the certificate was successfully generated 2022-04-12 17:40:58 +00:00
Omar Polo 2962200607 there are no aarch64 binaries currently 2022-04-08 16:40:18 +00:00
Omar Polo 48589d9de9 move the preview to github (temporarly) 2022-04-08 16:40:18 +00:00
Omar Polo 60d8851fec typos 2022-04-08 16:40:18 +00:00
Omar Polo bc70003f93 wording 2022-04-08 16:40:18 +00:00
Omar Polo 8addd12c1a don't need to re-exec ./configure && make 2022-04-08 16:36:25 +00:00
Omar Polo b6c093c99a bundle a copy of /usr/share/misc/mime.types 2022-04-08 15:50:53 +00:00
Omar Polo 5c4e8e97bd wording 2022-04-08 15:45:46 +00:00
Omar Polo 93cab6dc78 document the implicit mapping for text/gemini
and remove the explicit mapping from the documentation and test files.
2022-04-08 15:36:59 +00:00
Omar Polo 6d362b3556 revise changelog 2022-04-08 15:26:16 +00:00
Omar Polo 8fb0df4d79 hardcode the mapping text/gemini -> .gmi/.gemini
It's still possible to override this automatic mapping by just adding
an entry like

	application/octet-stream	gemini gmi

in the `types' block.
2022-04-08 15:25:50 +00:00
Omar Polo 99a95569a4 sync 2022-04-08 15:14:21 +00:00
Omar Polo 18bd83915e sort the MIME mappings and do a binary search to match 2022-04-08 15:14:09 +00:00
Omar Polo ca44613693 tweaks 2022-04-08 14:19:58 +00:00
Omar Polo 5eb842cd1f rework the 'running gmid as a daemon' example a bit 2022-04-08 14:08:33 +00:00
Omar Polo 5f03bf170f document the `types' behavior 2022-04-08 14:01:26 +00:00
Omar Polo 16c391a063 add an entry for text/gemini in the `types' example
if using `types' the internal listing is not used, so show how to add
the entries for text/gemini when using /usr/share/misc/mime.types.
2022-04-08 13:59:20 +00:00
Omar Polo fde8750859 fix test_include_mime after `types' change 2022-04-08 13:52:48 +00:00
Omar Polo 54203115cd don't load the built-in list when using `types' 2022-04-08 13:52:35 +00:00
Omar Polo 9b64995359 wrong email... 2022-04-08 13:45:33 +00:00
Omar Polo 1d6cbdd0df sync 2022-04-08 13:45:26 +00:00
Omar Polo d8d170aa5e allow add_mime to fail
add_mime nows allocate dinamically copies of the passed strings, so
that we can actually free what we parse from the config file.

This matters a lot especially with lengthy `types' block: strings that
reach the internal mapping are never free'd, so every manual addition
is leaked.
2022-04-08 13:44:49 +00:00
Omar Polo aa6b8cf8ac +jpeg 2022-04-08 13:33:05 +00:00
Omar Polo 72e7fbbcb7 master is now 1.8.3-current 2022-04-07 18:10:13 +00:00
Omar Polo 8036523fff add forgotten entries 2022-04-07 18:04:50 +00:00
Omar Polo f731e4a781 update changelog 2022-04-07 17:59:25 +00:00
Omar Polo 19243c768e link gmid.conf.5 in the capsule/website too 2022-04-07 17:56:27 +00:00
Omar Polo bf2850b938 install gmid.conf.5 too 2022-04-07 17:51:26 +00:00
Omar Polo 1595c277ef move the documentation of the config file into gmid.conf.5 2022-04-07 17:50:37 +00:00
Omar Polo 9bcc265f58 lowercase FAQ -- all the other links are in lowercase 2022-04-07 16:29:22 +00:00
Omar Polo ce264ddc58 rename the quickstart page to guide in the navbar
it occupies less horizontal space which avoids the wrapping on (some) mobiles
2022-04-07 16:27:57 +00:00
Omar Polo 445816c2cd add the FAQ page finally! 2022-04-07 16:27:16 +00:00
Omar Polo ffd92e638c tweak the quickstart guide a bit 2022-04-07 16:26:48 +00:00
Omar Polo 9448a01fdb use the types block instead of `map' in the tests too 2022-04-07 16:21:56 +00:00
Omar Polo 6468868fee print a deprecation message for the map rule 2022-04-07 16:15:55 +00:00
Omar Polo 4ee085938f don't mention the `map' rule anymore: `types' is way better 2022-04-07 16:12:58 +00:00
Omar Polo 381fccdc56 lower padding 2022-04-07 16:01:55 +00:00
Omar Polo a9885c6d6b remove outdated note 2022-04-07 12:31:00 +00:00
Omar Polo effbc069ba suggest to reload daemons too 2022-04-07 12:29:04 +00:00
Omar Polo 379d2608e9 suggest /etc/systemd/system instead of /lib/ 2022-04-07 12:27:55 +00:00
Omar Polo a9dc6fc606 rephrase dockerfile description 2022-04-07 12:27:26 +00:00
Omar Polo 456a4c6b6e add a "contributing" section 2022-03-29 12:25:18 +00:00
Omar Polo 2a7f69f4ee fix `make static': compile `gg' too! 2022-03-29 12:21:08 +00:00
Omar Polo 4252e62cad "a posix libc" can be left implicit 2022-03-29 12:13:25 +00:00
Omar Polo a68203f089 remove docker section; it's already showed off in the contrib page 2022-03-29 12:05:29 +00:00
Omar Polo f6a65aaef9 link the tar.bz2 too 2022-03-27 13:42:31 +00:00
Omar Polo efe75a7660 missing version bump in the site generator 2022-03-27 13:28:14 +00:00
Omar Polo 1a04137e18 tag 1.8.3 -- "Lightbulb Sun" bugfix release
gmid 1.8.3 "Lightbulb Sun" bugfix release
=========================================

Released March 27, 2022.

signify(1) pubkeys for this release:
RWTy3UJQzpxBUAymBwb2EGLLm0b3H/1n8hzhaC9HYFYzNuTavGt9QSwC


Bug Fixes
~~~~~~~~~

    * fix a possible out-of-bound access in the CGI handling.  It was
      introduced last October during a refactoring, but due to how
      many malloc(3) implementations works this hasn't been found
      until now.  Otto' malloc is more strict fortunately.
2022-03-27 12:59:57 +00:00
Omar Polo ea27eaaa83 fix an out-of-bound access in start_cgi
Long time ago, client->req was a static buffer so the memcpy was safe.
However, it's been since moved to a dynamically allocated string, so
it's very often smaller than sizeof(req.buf) (1024), hence the out of
bound access which results in a SIGSEGV very often on OpenBSD thanks to
Otto' malloc.

The situation with the iri parser, client->req and how the request is
forwarded to the other process needs to be improved: this is just a fix
to address the issue quickly, a better one would be to restructure the
iri parser APIs and rethink how the info is forwarded to the ex process.
2022-03-27 12:52:59 +00:00
Omar Polo 6084a9a5ba prefer sizeof(x) instead of datalen 2022-03-27 12:52:58 +00:00