| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
The new signature allows callers to distinguish decoding errors from
fatal errors. This is important for slcl to avoid crashing when
ill-formed data is received from a client.
|
| |
|
|
|
| |
/tmp is at least defined by POSIX.1-2017 at section 10 (Directory
Structure and Devices).
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
| |
So far, slcl's build system would always build libweb and dynstr.
However, this is discouraged by distribution packagers.
|
| |
|
|
| |
No changes must be committed to the database if mkdir(1) fails.
|
| |
|
|
|
|
| |
Despite common use in several POSIX operating systems, mktemp(1) is not
defined by POSIX.1-2008, nor even POSIX.1-2017. As long as it is not
introduced, m4(1)'s mkstemp can be used with similar effect.
|
| |
|
|
|
|
|
|
|
|
| |
According to C99 7.19.1p3:
BUFSIZ is a macro that expands to an integer constant expression that is
the size of the buffer used by the setbuf function.
In other words, this means BUFSIZ is the most optimal length for a
buffer that reads a file into memory in chunks using fread(3).
|
| | |
|
| |
|
|
|
|
|
|
| |
For platforms where int is a 16-bit data type, this operation might
overflow and possibly cause either unexpected behaviour and/or a
compiler warning.
Therefore, it is safer to promote each integer constant accordingly.
|
| | |
|
| |
|
|
|
| |
Sometimes, users want to know how many files and/or directories reside
on a directory. Now, slcl prints such information below the logout form.
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
| |
LICENSE is not copied to the installation prefix, so adding a short
copyright notice instead might be a better reference.
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
This feature was already implemented by:
commit 0822a982ef3b085dc109ec373ff537974503eb04
Author: Xavier Del Campo Romero <xavi.dcr@tutanota.com>
Date: Sat Jul 8 00:54:59 2023 +0200
Implement file/directory removal
|
| | |
|
| |
|
|
|
|
| |
sha256sum(1) is a GNU utility that might not be available under some
POSIX systems. Since OpenSSL is already a dependency, it makes sense to
reuse it to generate SHA256 digests.
|
| |
|
|
|
| |
xxd(1) is closely related to vim(1), might not be available under
some POSIX systems.
|
| | |
|
| |
|
|
|
| |
slcl has been successfully tested with OpenSSL 2.0 on an OpenBSD 7.3
host.
|
| |
|
|
|
| |
As opposed to other integer constants such as ULLONG_MAX, SIZE_MAX is
defined by stdint.h, not limits.h.
|
| |
|
|
|
|
|
| |
slweb now assumes application/x-www-form-urlencoded-data as text, so it
now returns a null-terminated string on struct http_post member "data".
This removes the need for slcl to call strdup(3) in order to obtain a
null-terminated string.
|
| |
|
|
|
|
|
|
|
| |
For historical reasons, slweb used to check for a name called "dir" on
multipart/form-data POST requests. However, stricly speaking this is
application logic, so it has been now moved from slweb to slcl.
This has resulted in a couple of breaking changes in slweb that had to
be updated on slcl.
|
| | |
|
| |
|
|
|
| |
Malformed POST requests might include no payload data. However, this is
not considered a fatal error, but wrong user input.
|
| |
|
|
| |
Last commits introduced several minor bugfixes and improvements.
|
| | |
|
| |
|
|
|
|
|
|
|
| |
d55b84f68b90fe5c2521724d0c22ebf22e62b0b4 introduces a bugfix:
Author: Xavier Del Campo Romero <xavi.dcr@tutanota.com>
Date: Tue Aug 8 00:32:21 2023 +0200
html.c: Fix wrong encoding for '>' and '<'
|
| | |
|
| |
|
|
|
| |
Otherwise, CMake by default tests the system C++ compiler, but this is
not a requirement for slcl.
|
| | |
|
| | |
|
| |
|
|
|
|
| |
When added to targets $(DYNSTR) and $(SLWEB), this would force running
the recursive Makefiles, which might then (or might not) rebuild
targets.
|
| |
|
|
|
|
| |
Despite designed around portability and minimalism, I feel slcl no
longer aligns with the philosophical views from the suckless project.
Therefore, I think it was appropriate to unlink its branding from it.
|
| | |
|
| | |
|
| |
|
|
|
|
| |
slweb is the HTTP/1.1 server implementation and utilities that slcl
originally implemented, which have now been split into a separate
repository.
|
| |
|
|
| |
It is now provided by slweb instead.
|
| |
|
|
|
| |
slweb puts its header files into its own directory in order to avoid
potential name clashing.
|
| |
|
|
|
| |
Now, slweb is a library slcl depends on, which includes the HTTP/1.1
server implementation, as well as other utilities.
|
| | |
|
| |
|
|
|
|
|
| |
slweb contains the HTTP/1.1 server implementation and surrounding
utilities that are used by slcl. The motivation behind this was to allow
these components to be used by other projects, as well as effectively
making slcl smaller and more modular.
|
| |
|
|
|
| |
This should allow for easier packaging if extra linker flags are
required.
|