<feed xmlns='http://www.w3.org/2005/Atom'>
<title>xavi/slcl/auth.c, branch thumbnail</title>
<subtitle>Small and lightweight cloud storage written in C99 and POSIX.1-2008.
</subtitle>
<id>https://gitea.privatedns.org/xavi/slcl/atom?h=thumbnail</id>
<link rel='self' href='https://gitea.privatedns.org/xavi/slcl/atom?h=thumbnail'/>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/slcl/'/>
<updated>2023-05-28T10:57:28+00:00</updated>
<entry>
<title>auth.c: Fix wrong size check</title>
<updated>2023-05-28T10:57:28+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2023-05-28T10:57:21+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/slcl/commit/?id=f1bf2fb68416b9da50eedd1e6fe97627c21f704f'/>
<id>urn:sha1:f1bf2fb68416b9da50eedd1e6fe97627c21f704f</id>
<content type='text'>
Otherwise, sb.st_size + 1 would exceed SIZE_MAX.
</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>auth.c: Add friendly reminder</title>
<updated>2023-03-16T00:59:17+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2023-03-16T00:59:17+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/slcl/commit/?id=fa474603ccaa1a50d258b82ee51e2bc9275ba8b9'/>
<id>urn:sha1:fa474603ccaa1a50d258b82ee51e2bc9275ba8b9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Move decode_hex into its own file</title>
<updated>2023-03-09T00:14:10+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2023-03-09T00:14:10+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/slcl/commit/?id=ad7fb045add90c3e4b3b7abe2a20eea3d05cfb1d'/>
<id>urn:sha1:ad7fb045add90c3e4b3b7abe2a20eea3d05cfb1d</id>
<content type='text'>
- Error detection against strotul(3) has been improved, as done in other
places.
- New function encode_hex has been implemented, which will be used
by future commits.
</content>
</entry>
<entry>
<title>Perform some minor optimizations</title>
<updated>2023-03-06T04:51:53+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2023-03-06T04:24:13+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/slcl/commit/?id=61dc4f42b346931b5a67da4f46013fd5e2fb6ad3'/>
<id>urn:sha1:61dc4f42b346931b5a67da4f46013fd5e2fb6ad3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Implement user quota</title>
<updated>2023-03-06T04:51:49+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2023-03-06T04:09:56+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/slcl/commit/?id=ff8da797a143cb1dfbeb4ce2d2c3e4a1d0c2e56a'/>
<id>urn:sha1:ff8da797a143cb1dfbeb4ce2d2c3e4a1d0c2e56a</id>
<content type='text'>
This feature allows admins to set a specific quota for each user, in
MiB. This feature is particularly useful for shared instances, where
unlimited user storage might be unfeasible or even dangerous for the
server.

Also, a nice HTML5 &lt;progress&gt; element has been added to the site that
shows how much of the quota has been consumed.

If no quota is set, slcl falls back to the default behaviour i.e.,
assume unlimited storage.

Limitations:

- While HTTP does specify a Content-Length, which determines the length
of the whole request, it does not specify how many files are involved
or their individual sizes.
- Because of this, if multiple files are uploaded simultaneously, the
whole request would be dropped if user quota is exceeded, even if not
all files exceeded it.
- Also, Content-Length adds the length of some HTTP boilerplate
(e.g.: boundaries), but slcl must rely on this before accepting the
whole request. In other words, this means some requests might be
rejected by slcl because of the extra bytes caused by such boilerplate.
- When the quota is exceeded, slcl must close the connection so that
the rest of the transfer is cancelled. Unfortunately, this means no
HTML can be sent back to the customer to inform about the situation.
</content>
</entry>
<entry>
<title>Initial commit</title>
<updated>2023-02-28T00:43:56+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2023-01-09T00:22:54+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/slcl/commit/?id=d26f046fc9149693a6ebc28301ccc3581c0f144e'/>
<id>urn:sha1:d26f046fc9149693a6ebc28301ccc3581c0f144e</id>
<content type='text'>
</content>
</entry>
</feed>
