- Oct 16, 2024
-
-
Timo Teräs authored
While there are no obvious paths to trigger any misbehaviour this removes usage of snprintf and potential bad patterns. Error handling in few instances is added as defensive means. fixes #11030
-
- Oct 15, 2024
-
-
-
POSIX specifies that basename(3) may change the string it is passed. To avoid confusion, replacing basename with apk_last_path_segment which is sufficient for the use case and never changes the argument. [TT: move to apk_print.h, use also in package.c, adjust commit log]
-
- Oct 11, 2024
- Sep 26, 2024
- Sep 25, 2024
-
-
calling ninja directly is preferable over calling meson compile, as it reinvokes ninja with the same arguments but adds all the python startup overhead
-
closes #11012
-
-
- Sep 24, 2024
-
-
Fixes 4aa80564 blob: optimize digit and base64 decoding
-
-
This avoids potential information loss when converting size_t to lua_Integer by not converting to int in between.
-
- Sep 23, 2024
-
-
Sertonix authored
Casting a long pointer to size_t pointer directly is not safe as far as I know.
-
- Sep 20, 2024
-
-
Since c2b4a43f the digest_alg are compared between the xattrs read from disk and read from the database. This means that we need to keep xattr_type set to APK_DIGEST_NONE when there actually is none.
-
-
- Sep 19, 2024
-
-
Peter van Dijk authored
-
- Sep 13, 2024
-
-
The first message line was already hidden with --quiet but the rest was still printed. Removing the message completely seems more reasonable to me.
-
This is needed to avoid EACCES when running apk audit as unprivilidged user.
-
This is to avoid issues when opening fifos cause without O_NONBLOCK they wait until the other end is opened.
-
- Sep 06, 2024
-
-
Sertonix authored
When the invalid options wasn't the last one the error would be ignored: apk --invalid --no-cache stats
-
Timo Teräs authored
fixes #11021
-
meson is able to handle LDFLAGS but -Dc_link_args is the intended way.
-
- Sep 02, 2024
-
-
Timo Teräs authored
fixes #11020
-
- Aug 31, 2024
-
-
Timo Teräs authored
fixes #11019
-
- Aug 30, 2024
-
-
Timo Teräs authored
Since the root directory is generally not owned by any package or even created by any package, it does not make sense to store it in the packages unless needed (because it contains a file in the root path). Unfortunately, the extraction code assumed the first path is the root path, so packages without the root node are not fully compatible backwards. Fix the extraction and make the code to omit the root node behind an option. Eventually it will become the default and the compatibility option will be removed.
-
Timo Teräs authored
-
Timo Teräs authored
-
Timo Teräs authored
-
- Aug 29, 2024
-
-
Timo Teräs authored
Revert the unintended change to apk_fileinfo_get on using fi->xattrs. fixes commit 1690e131 io, db: refactor struct apk_checksum away from struct apk_db_acl fixes #11018
-
Timo Teräs authored
fixes commit fb74ef1c db, adb: always use sha256-160 package identity in installeddb
-
- Aug 28, 2024
-
-
Timo Teräs authored
-
Timo Teräs authored
- rename "signing" options group to "generation" - add --compression as an option there - enable compression on applets where needed - update the documentation as a side effect this now compresses indexes by default, and allows recompression with 'adbsign' applet
-
Timo Teräs authored
-
Timo Teräs authored
Allows package to specify: provider=foo depends=!foo to provide foo as unversioned name and conflict against all other packages providing the same name (versioned or unversioned). fixes #10976
-
Timo Teräs authored
-
Timo Teräs authored
Instead of trying to write sha256 hashes to the installeddb, keep the length compatible with older apk and use sha256-160. Allow v3 package verification using sha256-160 if its installeddb. fixes #11017
-
- Aug 24, 2024
-
-
Timo Teräs authored
-
Timo Teräs authored
-
Timo Teräs authored
- adjust encoding of sha256 in such a manner that older apk will accept it (but truncate it to sha256-160 upon read) - always use sha1/sha256-160 for triggers to keep compatiblity - internally use sha1/sha256-160 as the hash key allow working in the mixed setup This should allow a rollback to older apk if needed, though doing so will cause truncation of the package hashes to sha256-160. The truncated package hashes may cause some issues with "apk fix" not handling the index based trust correctly. Once the installeddb conversion to adb is complete, these ugly things will go away. ref #11017
-