<feed xmlns='http://www.w3.org/2005/Atom'>
<title>xavi/slcl, branch imagemagick</title>
<subtitle>Small and lightweight cloud storage written in C99 and POSIX.1-2008.
</subtitle>
<id>https://gitea.privatedns.org/xavi/slcl/atom?h=imagemagick</id>
<link rel='self' href='https://gitea.privatedns.org/xavi/slcl/atom?h=imagemagick'/>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/slcl/'/>
<updated>2023-03-28T01:15:27+00:00</updated>
<entry>
<title>WIP thumbnail stuff</title>
<updated>2023-03-28T01:15:27+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2023-03-24T01:39:23+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/slcl/commit/?id=fa97b1904c72c184b09c627c7ccab0d0db4a060c'/>
<id>urn:sha1:fa97b1904c72c184b09c627c7ccab0d0db4a060c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Import mkdir_r</title>
<updated>2023-03-28T00:35:59+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2023-03-28T00:08:10+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/slcl/commit/?id=30d31e8c9d98b5641954207a909b531d9fc922c5'/>
<id>urn:sha1:30d31e8c9d98b5641954207a909b531d9fc922c5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>auth.c: Ensure absolute path for a-&gt;dir</title>
<updated>2023-03-25T08:57:19+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2023-03-25T08:57:19+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/slcl/commit/?id=ee6809eac527e101a077bc1d10e2acce96754ca8'/>
<id>urn:sha1:ee6809eac527e101a077bc1d10e2acce96754ca8</id>
<content type='text'>
Otherwise, slcl would create broken symbolic links if the user passes a
relative path as command line argument.
</content>
</entry>
<entry>
<title>main.c: Use S_ISDIR in ensure_dir</title>
<updated>2023-03-25T08:49:24+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2023-03-25T08:49:24+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/slcl/commit/?id=09a157d307f3dd766912a203347069b11fed1aa1'/>
<id>urn:sha1:09a157d307f3dd766912a203347069b11fed1aa1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Define _POSIX_C_SOURCE</title>
<updated>2023-03-24T01:49:11+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2023-03-24T01:47:11+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/slcl/commit/?id=b3ef22ac2ae126951c5b74003c7b17189c0ecbbb'/>
<id>urn:sha1:b3ef22ac2ae126951c5b74003c7b17189c0ecbbb</id>
<content type='text'>
This allows using the default compiler defined by make(1) (i.e.,
c99(1)), thus improving POSIX compatibility.
</content>
</entry>
<entry>
<title>http.c: Add missing #include</title>
<updated>2023-03-24T01:46:55+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2023-03-24T01:46:55+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/slcl/commit/?id=4501c66ebde5c4fc86eda193fe204d5b35e85652'/>
<id>urn:sha1:4501c66ebde5c4fc86eda193fe204d5b35e85652</id>
<content type='text'>
As required by strncasecmp(3).
</content>
</entry>
<entry>
<title>Send response on quota exceeded</title>
<updated>2023-03-20T09:57:20+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2023-03-20T02:32:00+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/slcl/commit/?id=d9bb874591c63f2efbfc1c4c953934251c700e9f'/>
<id>urn:sha1:d9bb874591c63f2efbfc1c4c953934251c700e9f</id>
<content type='text'>
So far, slcl would just close the connection with a client when the
Content-Length of an incoming request exceeded the user quota, without
any meaningful information given back to the user.

Now, slcl responds with a HTML file with meaningful information about
the error.

Limitations:

- While this commits has been successfully tested on ungoogled-chromium,
LibreWolf (and I assume Firefox and any other derivates too) does not
seem to receive the response from the server.
    - However, this issue only occurred during local testing, but not
on remote instances.
</content>
</entry>
<entry>
<title>README.md: Fix wrong links</title>
<updated>2023-03-19T23:10:26+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2023-03-19T23:10:26+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/slcl/commit/?id=d51b191ab7005de6679a00dd200ad5502ecff5ac'/>
<id>urn:sha1:d51b191ab7005de6679a00dd200ad5502ecff5ac</id>
<content type='text'>
</content>
</entry>
<entry>
<title>README.md: Update according to current status</title>
<updated>2023-03-19T22:59:45+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2023-03-19T12:27:41+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/slcl/commit/?id=f0936adb34ceddf7d6d5aa99519e7fdccdba8237'/>
<id>urn:sha1:f0936adb34ceddf7d6d5aa99519e7fdccdba8237</id>
<content type='text'>
</content>
</entry>
<entry>
<title>main.c: Fix double free(3) and refactor form handling</title>
<updated>2023-03-19T22:58:03+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2023-03-19T12:08:09+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/slcl/commit/?id=66bc98275f24935b2d609ce9c98de5c3b73c6dd3'/>
<id>urn:sha1:66bc98275f24935b2d609ce9c98de5c3b73c6dd3</id>
<content type='text'>
- When a non-empty username and an empty password was given, slcl would
crash due to a double free(3). This happened because append_form would
grow the form list before sanitizing the input and, since the output
pointer was not updated to the caller function, the latter would attempt
to free a now-old pointer.
- Additionally, some compilers such as clang complained about the
potential use of an uninitialized variable when calling forms_free.
- Also, it was a good opportunity to refactor get_forms and its caller
functions, as get_forms was not differentiate fatal errors from user
input errors.
</content>
</entry>
</feed>
