]>
git.seodisparate.com - SimpleArchiver/log
Stephen Seo [Mon, 17 Feb 2025 07:52:34 +0000 (16:52 +0900)]
Impl. setting version.h from CMake
Previous implementation only updated the version if the CMakeLists.txt
file was updated. This now auto-generates the version into version.h in
every build.
Stephen Seo [Mon, 17 Feb 2025 02:56:04 +0000 (11:56 +0900)]
Merge branch 'dev', Version 1.15
Stephen Seo [Mon, 17 Feb 2025 02:54:11 +0000 (11:54 +0900)]
Version 1.15
Stephen Seo [Mon, 17 Feb 2025 02:53:46 +0000 (11:53 +0900)]
Add notice when forcing dir permissions
Stephen Seo [Mon, 17 Feb 2025 02:46:44 +0000 (11:46 +0900)]
Add newline before printed usage text
Stephen Seo [Thu, 13 Feb 2025 01:15:00 +0000 (10:15 +0900)]
Update Changelog.md
Stephen Seo [Wed, 12 Feb 2025 10:05:46 +0000 (19:05 +0900)]
Force empty-dir perms only on "force-empty" flag
Previous behavior used the `--force-dir-permissions <octals>` flag to
set the archive-creation-empty-dirs permissions.
This commit changes this to check `--force-empty-dir-permissions
<octals>` instead.
Only applicable to file format versions 2 and 3.
Stephen Seo [Wed, 12 Feb 2025 05:56:46 +0000 (14:56 +0900)]
Update README.md
Stephen Seo [Wed, 12 Feb 2025 05:53:54 +0000 (14:53 +0900)]
Update Changelog.md
Stephen Seo [Wed, 12 Feb 2025 05:52:47 +0000 (14:52 +0900)]
Add flag to force-set permissions for empty dirs
Note this only affects file format versions 2 and 3.
Stephen Seo [Mon, 10 Feb 2025 06:17:21 +0000 (15:17 +0900)]
Refactorings (handling some TODOs)
Stephen Seo [Mon, 10 Feb 2025 06:09:02 +0000 (15:09 +0900)]
Minor fix: remove unnecessary comment
Stephen Seo [Thu, 6 Feb 2025 05:09:07 +0000 (14:09 +0900)]
Add unit test for helper string-parts
Stephen Seo [Thu, 6 Feb 2025 05:03:23 +0000 (14:03 +0900)]
Refactoring
Formalize "string_parts" into a helper struct/fns for use in archiver.c.
Stephen Seo [Tue, 4 Feb 2025 07:18:09 +0000 (16:18 +0900)]
Version 1.14
Stephen Seo [Tue, 4 Feb 2025 07:11:12 +0000 (16:11 +0900)]
Fix not setting dir permissions on extract
Expected behavior is for simplearchiver to set the directory permissions
after an empty directory is created.
Fixes the previous behavior where the default-permissions or
forced-permissions were used instead.
Stephen Seo [Mon, 3 Feb 2025 07:46:23 +0000 (16:46 +0900)]
Update Version 1.13
Stephen Seo [Mon, 3 Feb 2025 07:43:33 +0000 (16:43 +0900)]
Stricter directory permissions on dir creation
Directory default permission settings changed (for on dir creation).
Previous impl used: rwxrwxr-x
Current impl now uses: rwxr-xr-x
Stephen Seo [Tue, 28 Jan 2025 05:26:21 +0000 (14:26 +0900)]
CMakeLists.txt: Replace IS_EXECUTABLE with EXISTS
IS_EXECUTABLE does not exist in older versions of cmake.
Stephen Seo [Tue, 28 Jan 2025 05:21:55 +0000 (14:21 +0900)]
Update CMakeLists.txt to fix version when no .git
If building from extracted archive instead of git clone, defer version
to builtin.
Stephen Seo [Tue, 28 Jan 2025 03:57:00 +0000 (12:57 +0900)]
Merge branch 'dev', Version 1.12
Stephen Seo [Tue, 28 Jan 2025 03:56:05 +0000 (12:56 +0900)]
Version 1.12, Update Changelog.md
Stephen Seo [Tue, 28 Jan 2025 03:41:46 +0000 (12:41 +0900)]
Update README.md
Stephen Seo [Tue, 28 Jan 2025 03:39:00 +0000 (12:39 +0900)]
Set version.h to have a default version string
Stephen Seo [Tue, 28 Jan 2025 03:24:02 +0000 (12:24 +0900)]
Update LICENSE year in sources
Stephen Seo [Tue, 28 Jan 2025 03:24:02 +0000 (12:24 +0900)]
Update LICENSE year in sources
Stephen Seo [Tue, 28 Jan 2025 03:18:40 +0000 (12:18 +0900)]
Update Changelog.md
Stephen Seo [Tue, 28 Jan 2025 03:18:40 +0000 (12:18 +0900)]
Update Changelog.md
Stephen Seo [Tue, 28 Jan 2025 03:18:06 +0000 (12:18 +0900)]
Impl "--version"
Stephen Seo [Mon, 27 Jan 2025 11:31:13 +0000 (20:31 +0900)]
Update Changelog.md
Stephen Seo [Mon, 27 Jan 2025 11:10:14 +0000 (20:10 +0900)]
Fix file versions 2,3 creating dirs when only `-t`
The expected behavior is not to create anything when using the `-t`
flag.
Stephen Seo [Mon, 27 Jan 2025 11:17:24 +0000 (20:17 +0900)]
Update Changelog.md
Stephen Seo [Mon, 27 Jan 2025 11:14:14 +0000 (20:14 +0900)]
Update README.md, fix text about --prefix
Stephen Seo [Mon, 27 Jan 2025 11:10:52 +0000 (20:10 +0900)]
Fix absolute symlinks when using extract --prefix
Previous behavior would prepend the <prefix> to an absolute link if it
pointed to a file outside of the archive (when using --no-safe-links),
breaking the link.
Stephen Seo [Mon, 27 Jan 2025 11:10:14 +0000 (20:10 +0900)]
Fix file versions 2,3 creating dirs when only `-t`
The expected behavior is not to create anything when using the `-t`
flag.
Stephen Seo [Mon, 27 Jan 2025 10:20:58 +0000 (19:20 +0900)]
Impl --prefix extract for file fmt version 3
TODO:
Testing, cleanup, regression fixes.
Stephen Seo [Mon, 27 Jan 2025 09:20:21 +0000 (18:20 +0900)]
WIP --prefix: Impl --prefix archive file fmt ver 3
TODO:
Impl --prefix extract file format version 3
Stephen Seo [Mon, 27 Jan 2025 08:49:11 +0000 (17:49 +0900)]
WIP --prefix: Impl --prefix extract file fmt ver 2
TODO:
Impl --prefix archive/extract for file format version 3
Stephen Seo [Mon, 27 Jan 2025 08:36:59 +0000 (17:36 +0900)]
WIP --prefix: Impl --prefix archive file fmt ver 2
TODO:
Impl --prefix extract for file format version 2
Impl --prefix archive/extract for file format version 3
Stephen Seo [Mon, 27 Jan 2025 06:08:29 +0000 (15:08 +0900)]
WIP --prefix: Impl --prefix extract file ver 1
TODO:
Impl --prefix archive/extract for file format versions 2 and 3
Stephen Seo [Mon, 27 Jan 2025 05:11:27 +0000 (14:11 +0900)]
WIP --prefix: Impl --prefix for archive file ver 1
TODO:
--prefix for extracting file format version 1
--prefix for archiving/extracting file format versions 2 and 3
Stephen Seo [Mon, 27 Jan 2025 04:53:23 +0000 (13:53 +0900)]
Fix specified type for vars from strlen(...)
Stephen Seo [Fri, 24 Jan 2025 09:07:18 +0000 (18:07 +0900)]
WIP --prefix: Impl --prefix for file v0 extracting
Minor fixes to helper code.
TODO:
- file v1, v2, and v3 archiving and extracting with "--prefix"
Stephen Seo [Thu, 23 Jan 2025 07:36:09 +0000 (16:36 +0900)]
WIP --prefix: Impl --prefix for file v0 archiving
TODO:
- file v0 extraction "--prefix"
- file v1, v2, and v3 archiving and extraction "--prefix"
Stephen Seo [Wed, 22 Jan 2025 08:53:35 +0000 (17:53 +0900)]
WIP --prefix: Parser and Helper code setup
Added "--prefix <prefix>" to parser to specify a prefix to prepend to
files/dirs/symlinks when archiving or extracting.
Added some helper functions to facilitate the creation of this feature
and some unit tests to test them.
Stephen Seo [Wed, 15 Jan 2025 11:01:42 +0000 (20:01 +0900)]
Update cmake conf: omit flags for cross compiling
Stephen Seo [Wed, 15 Jan 2025 04:09:45 +0000 (13:09 +0900)]
Update LICENSE year
Stephen Seo [Tue, 14 Jan 2025 05:26:23 +0000 (14:26 +0900)]
Merge branch 'dev', Version 1.11
Stephen Seo [Tue, 14 Jan 2025 05:25:23 +0000 (14:25 +0900)]
Version 1.11, update Changelog.md
Stephen Seo [Mon, 13 Jan 2025 04:10:57 +0000 (13:10 +0900)]
Update README.md
Stephen Seo [Fri, 10 Jan 2025 07:44:31 +0000 (16:44 +0900)]
Impl extract UID/GID remapping format ver 1 & 2
Stephen Seo [Thu, 9 Jan 2025 07:17:33 +0000 (16:17 +0900)]
Fix typo
Stephen Seo [Thu, 9 Jan 2025 07:14:32 +0000 (16:14 +0900)]
Update README.md, add notice about perms/ownership
Stephen Seo [Thu, 9 Jan 2025 07:09:22 +0000 (16:09 +0900)]
Impl UID/GID remap for extract file format v3
TODO: Impl remap for previous file format versions.
Stephen Seo [Thu, 9 Jan 2025 05:54:47 +0000 (14:54 +0900)]
Impl remapping for symlinks on extract (file v3)
TODO: Remapping for rest of extracting file v3, and remapping for
extracting other file versions.
Stephen Seo [Wed, 8 Jan 2025 07:15:47 +0000 (16:15 +0900)]
Print file format version on start of parsing
Stephen Seo [Wed, 8 Jan 2025 06:58:38 +0000 (15:58 +0900)]
Impl UID/GID remap for file format v1
TODO: Remap on extract.
Stephen Seo [Wed, 8 Jan 2025 06:52:13 +0000 (15:52 +0900)]
Impl UID/GID remap for file v2
TODO: Remapping on extract.
Stephen Seo [Wed, 8 Jan 2025 06:43:32 +0000 (15:43 +0900)]
Impl UID/GID remap on v3 archive
TODO: Impl UID/GID remap on extract.
Stephen Seo [Tue, 7 Jan 2025 11:18:35 +0000 (20:18 +0900)]
Update README.md
Stephen Seo [Tue, 7 Jan 2025 06:51:00 +0000 (15:51 +0900)]
WIP UID/GID remap, impl helper get fns in parser
Stephen Seo [Mon, 6 Jan 2025 06:48:43 +0000 (15:48 +0900)]
WIP UID/GID remapping, more verbose remap errors
Stephen Seo [Mon, 6 Jan 2025 06:45:18 +0000 (15:45 +0900)]
Update Changelog.md, UID/GID remapping still WIP
Stephen Seo [Mon, 6 Jan 2025 06:40:09 +0000 (15:40 +0900)]
WIP remapping, verbose user/group mapping errors
Stephen Seo [Mon, 6 Jan 2025 05:24:11 +0000 (14:24 +0900)]
Ensure start-of-unit-test-message is flushed
Stephen Seo [Mon, 6 Jan 2025 05:20:11 +0000 (14:20 +0900)]
WIP user/group mapping, more mapping validation
Stephen Seo [Mon, 6 Jan 2025 04:54:44 +0000 (13:54 +0900)]
WIP work on `--map-user`, `--map-group`
The parser code sets up the mappings, but the archiving code doesn't
handle it yet.
Stephen Seo [Fri, 3 Jan 2025 07:43:33 +0000 (16:43 +0900)]
Update Changelog.md
Stephen Seo [Fri, 3 Jan 2025 07:42:40 +0000 (16:42 +0900)]
Update README.md
Stephen Seo [Fri, 3 Jan 2025 07:21:02 +0000 (16:21 +0900)]
Add `--extract-prefer-uid`, `--extract-prefer-gid`
Stephen Seo [Thu, 2 Jan 2025 12:14:07 +0000 (21:14 +0900)]
Improve priorty_heap iter fn, improve ds unit test
Stephen Seo [Thu, 2 Jan 2025 12:03:11 +0000 (21:03 +0900)]
Update Changelog.md
Stephen Seo [Thu, 2 Jan 2025 04:41:39 +0000 (13:41 +0900)]
Fix symlink UID/GID force setting (file v3)
Stephen Seo [Thu, 2 Jan 2025 04:36:50 +0000 (13:36 +0900)]
Fix force-setting UID/GID for stored directories
Stephen Seo [Thu, 2 Jan 2025 04:31:52 +0000 (13:31 +0900)]
Fix fetching user/group UID/GID with --force-...
Stephen Seo [Thu, 2 Jan 2025 04:28:26 +0000 (13:28 +0900)]
Fix `--force-group` invalid groupname handling
Stephen Seo [Thu, 2 Jan 2025 04:25:12 +0000 (13:25 +0900)]
Add `--force-user <user>`, `--force-group <group>`
Stephen Seo [Thu, 2 Jan 2025 04:24:55 +0000 (13:24 +0900)]
Migrate UsersInfos struct to Parsed struct
Stephen Seo [Thu, 2 Jan 2025 04:11:39 +0000 (13:11 +0900)]
Update Changelog.md
Stephen Seo [Tue, 31 Dec 2024 08:44:08 +0000 (17:44 +0900)]
Update Changelog.md
Stephen Seo [Tue, 31 Dec 2024 07:09:16 +0000 (16:09 +0900)]
Impl. parsing `file format version 3`
Includes some minor fixes.
Stephen Seo [Tue, 31 Dec 2024 05:23:09 +0000 (14:23 +0900)]
Impl. write file format version 3
Also added helper struct in users.h/users.c . Added to CMakeLists.txt
and cosmopolitan/Makefile.
Stephen Seo [Tue, 31 Dec 2024 03:47:55 +0000 (12:47 +0900)]
Update file_format.md for version 3 file format
Stephen Seo [Tue, 31 Dec 2024 08:55:29 +0000 (17:55 +0900)]
Fix priorty-heap-iter function
Stephen Seo [Mon, 30 Dec 2024 07:24:34 +0000 (16:24 +0900)]
Merge branch 'dev', Version 1.10
Stephen Seo [Mon, 30 Dec 2024 07:24:25 +0000 (16:24 +0900)]
Version 1.10
Stephen Seo [Mon, 30 Dec 2024 07:23:53 +0000 (16:23 +0900)]
Add note about `--temp-files-dir <dir>` in README
Stephen Seo [Fri, 27 Dec 2024 13:24:15 +0000 (22:24 +0900)]
Fix formatting again (80-char limit)
Stephen Seo [Fri, 27 Dec 2024 13:15:19 +0000 (22:15 +0900)]
Fix formatting (80-char width limit)
Stephen Seo [Fri, 27 Dec 2024 03:10:15 +0000 (12:10 +0900)]
Error message on failure to create temporary file
Stephen Seo [Thu, 26 Dec 2024 01:50:52 +0000 (10:50 +0900)]
Fix temp_file setup for v0 file format
Stephen Seo [Thu, 26 Dec 2024 01:46:32 +0000 (10:46 +0900)]
Sanity checks for handling temporary files cleanup
Stephen Seo [Thu, 26 Dec 2024 01:40:04 +0000 (10:40 +0900)]
Also fix creating temp_file for creating v1 file
Stephen Seo [Wed, 25 Dec 2024 12:28:06 +0000 (21:28 +0900)]
Fix Changelog.md
Stephen Seo [Wed, 25 Dec 2024 12:18:26 +0000 (21:18 +0900)]
Update Changelog.md
Stephen Seo [Wed, 25 Dec 2024 12:16:52 +0000 (21:16 +0900)]
Fix case when archiving from read-only directory
A temporary file is usually created to store compressed archive
chunks/files which is located where the files are. This commit
falls-back to using `tmpfile()` if the first attempt to create a
temporary file fails.
Stephen Seo [Wed, 25 Dec 2024 04:58:05 +0000 (13:58 +0900)]
Update README.md
Stephen Seo [Wed, 25 Dec 2024 04:58:05 +0000 (13:58 +0900)]
Update README.md
Stephen Seo [Wed, 25 Dec 2024 03:46:27 +0000 (12:46 +0900)]
Force set dir permissions when specified
The previous behavior refused to set `write` for `group` and `other`
when setting directory permissions.
This commit changes this so that when permissions are specified, then
the directory is `chmod`d after its creation.
Stephen Seo [Tue, 24 Dec 2024 02:25:17 +0000 (11:25 +0900)]
Update README.md