<feed xmlns='http://www.w3.org/2005/Atom'>
<title>catsit, branch 1.4</title>
<subtitle>(deprecated) process supervisor
</subtitle>
<id>https://git.causal.agency/catsit/atom?h=1.4</id>
<link rel='self' href='https://git.causal.agency/catsit/atom?h=1.4'/>
<link rel='alternate' type='text/html' href='https://git.causal.agency/catsit/'/>
<updated>2021-09-28T21:04:04+00:00</updated>
<entry>
<title>Show /var/log/messages after catsit command</title>
<updated>2021-09-28T21:04:04+00:00</updated>
<author>
<name>C. McEnroe</name>
<email>june@causal.agency</email>
</author>
<published>2021-09-28T21:04:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.causal.agency/catsit/commit/?id=38345004720d640ac474a0c14cdc09b8414dfe0c'/>
<id>urn:sha1:38345004720d640ac474a0c14cdc09b8414dfe0c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Refer to glob(7)</title>
<updated>2021-09-28T20:41:43+00:00</updated>
<author>
<name>C. McEnroe</name>
<email>june@causal.agency</email>
</author>
<published>2021-09-28T20:41:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.causal.agency/catsit/commit/?id=f5888b8f8319dd9fc1c716b9b33062729fe726f7'/>
<id>urn:sha1:f5888b8f8319dd9fc1c716b9b33062729fe726f7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Allow backslash line continuation in catsit.conf</title>
<updated>2021-09-28T20:18:48+00:00</updated>
<author>
<name>C. McEnroe</name>
<email>june@causal.agency</email>
</author>
<published>2021-09-28T20:18:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.causal.agency/catsit/commit/?id=909cbf302956d75fa872f9a4e54d6a948a99810c'/>
<id>urn:sha1:909cbf302956d75fa872f9a4e54d6a948a99810c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Allocate pollfd array rather than using a VLA</title>
<updated>2021-09-26T22:11:38+00:00</updated>
<author>
<name>C. McEnroe</name>
<email>june@causal.agency</email>
</author>
<published>2021-09-26T22:11:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.causal.agency/catsit/commit/?id=b5437a42f9950d7f56d7c199521929e7d93df287'/>
<id>urn:sha1:b5437a42f9950d7f56d7c199521929e7d93df287</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use reallocarray(3)</title>
<updated>2021-09-26T21:51:03+00:00</updated>
<author>
<name>C. McEnroe</name>
<email>june@causal.agency</email>
</author>
<published>2021-09-26T21:51:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.causal.agency/catsit/commit/?id=55c4755943e16a84b4bb7a6b1d9e4d70ac35728a'/>
<id>urn:sha1:55c4755943e16a84b4bb7a6b1d9e4d70ac35728a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Don't parse config until after daemonization</title>
<updated>2021-09-26T21:39:08+00:00</updated>
<author>
<name>C. McEnroe</name>
<email>june@causal.agency</email>
</author>
<published>2021-09-26T21:39:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.causal.agency/catsit/commit/?id=f346f61ea05e3500c37f52f0bfd8ef4754991716'/>
<id>urn:sha1:f346f61ea05e3500c37f52f0bfd8ef4754991716</id>
<content type='text'>
And consequently, until after pledge(2) and unveil(2) on OpenBSD.
Replace parsing before daemonization with a simple check that the
file is readable. There's not much that can go wrong in parsing
anyway.
</content>
</entry>
<entry>
<title>OpenBSD: Simplify pledge(2) and unveil(2) strategy</title>
<updated>2021-09-26T21:25:58+00:00</updated>
<author>
<name>C. McEnroe</name>
<email>june@causal.agency</email>
</author>
<published>2021-09-26T21:25:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.causal.agency/catsit/commit/?id=bdcb9ab46fa5b2e86c9d7253523dea5f4fd43d38'/>
<id>urn:sha1:bdcb9ab46fa5b2e86c9d7253523dea5f4fd43d38</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix inverted exec prepend logic</title>
<updated>2021-09-25T03:31:14+00:00</updated>
<author>
<name>C. McEnroe</name>
<email>june@causal.agency</email>
</author>
<published>2021-09-25T03:31:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.causal.agency/catsit/commit/?id=3769acfdc7e95a8df66eaa91e18695b656a32474'/>
<id>urn:sha1:3769acfdc7e95a8df66eaa91e18695b656a32474</id>
<content type='text'>
Well that's embarrassing.
</content>
</entry>
<entry>
<title>Remove freenode</title>
<updated>2021-05-19T15:18:26+00:00</updated>
<author>
<name>C. McEnroe</name>
<email>june@causal.agency</email>
</author>
<published>2021-05-19T15:18:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.causal.agency/catsit/commit/?id=972922209d0ad8892cdc39b0fd5df1ae28964a64'/>
<id>urn:sha1:972922209d0ad8892cdc39b0fd5df1ae28964a64</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Skip leading whitespace on prepends and commands</title>
<updated>2021-03-02T00:41:01+00:00</updated>
<author>
<name>C. McEnroe</name>
<email>june@causal.agency</email>
</author>
<published>2021-03-02T00:41:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.causal.agency/catsit/commit/?id=207da7ffcf52352cf71090cd7e4e7881816618f1'/>
<id>urn:sha1:207da7ffcf52352cf71090cd7e4e7881816618f1</id>
<content type='text'>
</content>
</entry>
</feed>
it@cryptocrack.de&gt;


</td></tr>
<tr class='logheader'><td><span title='2014-02-21 01:18:54 +0100'>2014-02-21</span></td><td class='logsubject'><a href='/cgit-pink/commit/git?h=1.4.0&amp;id=8033dc01f4ae1551c21769f580caa723fb176d9c&amp;follow=1'>git: Update to 1.9.0</a></td><td>Lukas Fleischer</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
No code changes required, just bump the submodule and Makefile versions.

Signed-off-by: Lukas Fleischer &lt;cgit@cryptocrack.de&gt;


</td></tr>
<tr class='logheader'><td><span title='2014-02-20 20:06:29 +0100'>2014-02-20</span></td><td class='logsubject'><a href='/cgit-pink/commit/cgit.mk?h=1.4.0&amp;id=8acfa51a8b3c6011483132c933213231f7a4865b&amp;follow=1'>Makefile: suppress pkg-config error</a></td><td>Jason A. Donenfeld</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;


</td></tr>
<tr class='logheader'><td><span title='2014-02-20 19:56:44 +0100'>2014-02-20</span></td><td class='logsubject'><a href='/cgit-pink/commit/cgitrc.5.txt?h=1.4.0&amp;id=a3722ec3c6660ace9fe637d617a0ca225acfacbc&amp;follow=1'>Add a cache-snapshot-ttl configuration variable</a></td><td>Lukas Fleischer</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
This can be used to specify the TTL for snapshots. Snapshots are usually
static and do not ever change. On the other hand, tarball generation is
CPU intensive.

One use case of this setting (apart from increasing the lifetime of
snapshot cache slots) is caching of snapshots while disabling the cache
for static/dynamic HTML pages (by setting TTL to zero for everything
except for snapshot requests).

Signed-off-by: Lukas Fleischer &lt;cgit@cryptocrack.de&gt;


</td></tr>
<tr class='logheader'><td><span title='2014-02-20 19:48:24 +0100'>2014-02-20</span></td><td class='logsubject'><a href='/cgit-pink/commit/shared.c?h=1.4.0&amp;id=7e1c0ed2aa50ed2290f63912897a3724b224b7ea&amp;follow=1'>diffstat: do not rely on uninitialized data</a></td><td>Jason A. Donenfeld</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
Right now if you visit:
&lt;http://git.zx2c4.com/systemd/diff/src/udev/udev-builtin-input_id.c?id=bcfce235&gt;
you'll see that if you reload the page a few times, a bunch of times the
diffstat comes out with no lines being shown or changed. I'm not
currently sure what the cause of this is, but I suspect it might have to
do with this uninitialized data.

Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;


</td></tr>
<tr class='logheader'><td><span title='2014-02-05 15:09:15 +0100'>2014-02-05</span></td><td class='logsubject'><a href='/cgit-pink/commit/gen-version.sh?h=1.4.0&amp;id=e8cacb5981039e7e74921659ea50e287395ed411&amp;follow=1'>gen-version.sh: check if git is available before trying to call it</a></td><td>Fabien C</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
Some people may clone the cgit repository and compile within a sandbox
or on another machine where git is not necessarily installed. When it
happens, cgit is getting compiled with an empty version number.

This commit fixes this.


</td></tr>
<tr class='logheader'><td><span title='2014-01-23 00:58:07 +0100'>2014-01-23</span></td><td class='logsubject'><a href='/cgit-pink/commit/filters/simple-authentication.lua?h=1.4.0&amp;id=aa6d5b105de9de6d01855c15217e46fd36890dbc&amp;follow=1'>simple-authentication: style</a></td><td>Jason A. Donenfeld</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;


</td></tr>
<tr class='logheader'><td><span title='2014-01-22 15:41:17 +0100'>2014-01-22</span></td><td class='logsubject'><a href='/cgit-pink/commit/cgit.mk?h=1.4.0&amp;id=44ccae4227060f91c60ad45de1188e728ce8af0d&amp;follow=1'>makefile: use LUA_PKGCONFIG to set Lua implementation</a></td><td>Natanael Copa</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
This breaks compat with the previous LUA_IMPLEMENTATION but gives more
flexibility in that user can specify the pkg-config package name
directly.

Signed-off-by: Natanael Copa &lt;ncopa@alpinelinux.org&gt;


</td></tr>
<tr class='logheader'><td><span title='2014-01-20 13:11:10 +0100'>2014-01-20</span></td><td class='logsubject'><a href='/cgit-pink/commit/tests/t0111-filter.sh?h=1.4.0&amp;id=f759cc0f08c195940de05d5394f7b1ad4d44365e&amp;follow=1'>tests: only do lua tests if lua is compiled-in</a></td><td>Jason A. Donenfeld</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;


</td></tr>
<tr class='logheader'><td><span title='2014-01-20 13:05:08 +0100'>2014-01-20</span></td><td class='logsubject'><a href='/cgit-pink/commit/cgit.c?h=1.4.0&amp;id=6a1563343c48f9e38b85f39f4a95c89ea0f46a60&amp;follow=1'>cgit: add --version argument for printing info</a></td><td>Jason A. Donenfeld</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
We need this to do runtime tests for make test.

Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;


</td></tr>
<tr class='logheader'><td><span title='2014-01-19 15:08:49 +0100'>2014-01-19</span></td><td class='logsubject'><a href='/cgit-pink/commit/cgit.mk?h=1.4.0&amp;id=d3581b58890389794de5d5222c91a0129873e95c&amp;follow=1'>cache: use sendfile() instead of a pair of read() + write()</a></td><td>Sebastian Andrzej Siewior</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
sendfile() does the same job and avoids to copy the content into userland
and back. One has to define NO_SENDFILE in case the OS (kernel / libc)
does not supported. It is disabled by default on non-linux environemnts.
According to the glibc, sendfile64() was added in Linux 2.4 (so it has
been there for a while) but after browsing over the mapage of FreeBSD's I
noticed that the prototype is little different.

Signed-off-by: Sebastian Andrzej Siewior &lt;sebastian@breakpoint.cc&gt;


</td></tr>
<tr class='logheader'><td><span title='2014-01-19 15:07:56 +0100'>2014-01-19</span></td><td class='logsubject'><a href='/cgit-pink/commit/README?h=1.4.0&amp;id=ea7210bef377be4ffb088a1a8e5a9dd354f82afb&amp;follow=1'>README: document pkg-config for luajit</a></td><td>Jason A. Donenfeld</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;


</td></tr>
<tr class='logheader'><td><span title='2014-01-17 16:09:16 +0100'>2014-01-17</span></td><td class='logsubject'><a href='/cgit-pink/commit/Makefile?h=1.4.0&amp;id=6952f164c10689e3c112dbef85e461a6246654be&amp;follow=1'>makefile: bump version</a></td><td>Jason A. Donenfeld</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;


</td></tr>
<tr class='logheader'><td><span title='2014-01-17 16:04:27 +0100'>2014-01-17</span></td><td class='logsubject'><a href='/cgit-pink/commit/.mailmap?h=1.4.0&amp;id=bdbe03af61e884ac9a922d1b553be32284cb9d2d&amp;follow=1'>mailmap: source before lighttpd</a></td><td>Jason A. Donenfeld</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;


</td></tr>
<tr class='logheader'><td><span title='2014-01-17 15:41:41 +0100'>2014-01-17</span></td><td class='logsubject'><a href='/cgit-pink/commit/ui-shared.c?h=1.4.0&amp;id=bb3cc0d9666553608b7c89aef84d21d3312ce488&amp;follow=1'>ui-shared: do not allow negative minutes</a></td><td>Jason A. Donenfeld</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
Do to timestamp differences, sometimes cgit would should "-0 min", which
doesn't make any sense.

Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;


</td></tr>
<tr class='logheader'><td><span title='2014-01-17 15:34:44 +0100'>2014-01-17</span></td><td class='logsubject'><a href='/cgit-pink/commit/filters/simple-authentication.lua?h=1.4.0&amp;id=9dde6d38e9fc273fc62386eeda0da2e89a2cebfc&amp;follow=1'>auth: document tweakables in lua script</a></td><td>Jason A. Donenfeld</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;


</td></tr>
<tr class='logheader'><td><span title='2014-01-17 14:01:27 +0100'>2014-01-17</span></td><td class='logsubject'><a href='/cgit-pink/commit/ui-repolist.c?h=1.4.0&amp;id=a2b6b3717567a5b57a19d19ed89af324296f39a9&amp;follow=1'>repolist: make owner clickable to search</a></td><td>Jason A. Donenfeld</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;


</td></tr>
<tr class='logheader'><td><span title='2014-01-17 13:53:37 +0100'>2014-01-17</span></td><td class='logsubject'><a href='/cgit-pink/commit/ui-shared.c?h=1.4.0&amp;id=3cbbb8ea39d7a85cb5d3c14f81abb174a8b49b95&amp;follow=1'>ui-shared: move about tab all the way to the left</a></td><td>Jason A. Donenfeld</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
There were no objections (at the time of committing this):
   http://lists.zx2c4.com/pipermail/cgit/2013-May/001393.html
   http://lists.zx2c4.com/pipermail/cgit/2014-January/001904.html

Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;


</td></tr>
<tr class='logheader'><td><span title='2014-01-17 13:53:02 +0100'>2014-01-17</span></td><td class='logsubject'><a href='/cgit-pink/commit/filter.c?h=1.4.0&amp;id=9786f4613da38cb263e76263370d7816a9347149&amp;follow=1'>filter: don't forget to reap the auth filter</a></td><td>Jason A. Donenfeld</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;


</td></tr>
<tr class='logheader'><td><span title='2014-01-17 00:48:17 +0100'>2014-01-17</span></td><td class='logsubject'><a href='/cgit-pink/commit/cgit.c?h=1.4.0&amp;id=9999b0a3e915c76a52be433830660e803ef71cb0&amp;follow=1'>cgit.c: free tmp variable</a></td><td>Jason A. Donenfeld</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;


</td></tr>
<tr class='logheader'><td><span title='2014-01-17 00:44:54 +0100'>2014-01-17</span></td><td class='logsubject'><a href='/cgit-pink/commit/ui-stats.h?h=1.4.0&amp;id=f60ffa143cca61e9729ac71033e1a556cf422871&amp;follow=1'>Switch to exclusively using global ctx</a></td><td>Lukas Fleischer</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
Drop the context parameter from the following functions (and all static
helpers used by them) and use the global context instead:

* cgit_print_http_headers()
* cgit_print_docstart()
* cgit_print_pageheader()

Remove context parameter from all commands

Drop the context parameter from the following functions (and all static
helpers used by them) and use the global context instead:

* cgit_get_cmd()
* All cgit command functions.
* cgit_clone_info()
* cgit_clone_objects()
* cgit_clone_head()
* cgit_print_plain()
* cgit_show_stats()

In initialization routines, use the global context variable instead of
passing a pointer around locally.

Remove callback data parameter for cache slots

This is no longer needed since the context is always read from the
global context variable.

Signed-off-by: Lukas Fleischer &lt;cgit@cryptocrack.de&gt;


</td></tr>
<tr class='logheader'><td><span title='2014-01-16 23:21:54 +0100'>2014-01-16</span></td><td class='logsubject'><a href='/cgit-pink/commit/ui-shared.h?h=1.4.0&amp;id=a431326e8fab8153905fbde036dd3c9fb4cc8eaa&amp;follow=1'>auth: have cgit calculate login address</a></td><td>Jason A. Donenfeld</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
This way we're sure to use virtual root, or any other strangeness
encountered.

Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;


</td></tr>
<tr class='logheader'><td><span title='2014-01-16 19:47:35 +0100'>2014-01-16</span></td><td class='logsubject'><a href='/cgit-pink/commit/filters/simple-authentication.lua?h=1.4.0&amp;id=df00ab1096868b3cffe563c48de5572f78b50392&amp;follow=1'>auth: lua string comparisons are time invariant</a></td><td>Jason A. Donenfeld</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
By default, strings are compared by hash, so we can remove this comment.

Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;


</td></tr>
<tr class='logheader'><td><span title='2014-01-16 12:13:39 +0100'>2014-01-16</span></td><td class='logsubject'><a href='/cgit-pink/commit/filters/simple-authentication.lua?h=1.4.0&amp;id=b826537cb4aa2358027ffcb1dd6a87274734e962&amp;follow=1'>authentication: use hidden form instead of referer</a></td><td>Jason A. Donenfeld</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
This also gives us some CSRF protection. Note that we make use of the
hmac to protect the redirect value.

Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;


</td></tr>
<tr class='logheader'><td><span title='2014-01-16 02:28:12 +0100'>2014-01-16</span></td><td class='logsubject'><a href='/cgit-pink/commit/ui-shared.c?h=1.4.0&amp;id=d6e9200cc35411f3f27426b608bcfdef9348e6d3&amp;follow=1'>auth: add basic authentication filter framework</a></td><td>Jason A. Donenfeld</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
This leverages the new lua support. See
filters/simple-authentication.lua for explaination of how this works.
There is also additional documentation in cgitrc.5.txt.

Though this is a cookie-based approach, cgit's caching mechanism is
preserved for authenticated pages.

Very plugable and extendable depending on user needs.

The sample script uses an HMAC-SHA1 based cookie to store the
currently logged in user, with an expiration date.

Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;


</td></tr>
<tr class='logheader'><td><span title='2014-01-16 00:53:18 +0100'>2014-01-16</span></td><td class='logsubject'><a href='/cgit-pink/commit/tests/t0111-filter.sh?h=1.4.0&amp;id=3741254a6989b2837cd8d20480f152f0096bcb9a&amp;follow=1'>t0111: Additions and fixes</a></td><td>Lukas Fleischer</td></tr>
<tr class='nohover-highlight'><td/><td colspan='3' class='logmsg'>
* Rename the capitalize-* filters to dump.* since they also dump the
  arguments.

* Add full argument validation to the email filters.

Signed-off-by: Lukas Fleischer &lt;cgit@cryptocrack.de&gt;


</td></tr>
<tr class='logheader'><td><span title='2014-01-16 00:53:08 +0100'>2014-01-16</span></td><td class='logsubject'><a href='/cgit-pink/commit/parsing.c?h=1.4.0&amp;id=2a7dd4bf67edeff2c6c4f6d6d39d2d7f954d978a&amp;follow=1'>parsing.c: Remove leading space from committer</a></td><td>Lukas Fleischer