465 Commits
Author SHA1 Message Date
Yunus Emre Ozen fb55fee8fe create: check is_dir once for the recursive and --no-recursion cases 2026-10-14 22:18:33 +02:00
Yunus Emre Ozen 701eabbea4 create: add --no-recursion
With --no-recursion, a directory named on the command line is added as a
directory entry only, without its contents, like GNU tar.

Closes #188
2026-10-14 22:18:33 +02:00
renovate[bot] 33d7f7665b Update Rust crate divan to v5.0.3 2026-10-14 13:30:04 +02:00
renovate[bot] 4536222d7b Update Rust crate zip to v9.0.3 2026-10-14 07:15:03 +02:00
Yunus Emre Ozen a42dbccbe1 extract: move the '..' member messages to TarError 2026-10-13 11:42:53 +02:00
Yunus Emre Ozen 284527a954 tar: report members containing '..' and exit with status 2
When extracting, tar-rs refuses a member whose name contains a `..`
component, so that it cannot be written outside the current directory,
and reports that through the return value of `unpack_in`. That value
was ignored: the member was skipped silently and tar exited 0.

GNU tar reports such a member, extracts the remaining ones, and exits 2
with "Exiting with failure status due to previous errors". Do the same,
and only print "Error is not recoverable: exiting now" when the exit
status comes from an error that stopped tar, not from one it recovered
from.

Fixes #386
2026-10-13 11:42:53 +02:00
oech3 ae582f473e ci.yml: avoid full git clone with --depth=1 2026-10-12 09:01:55 +02:00
renovate[bot] 78a6a04463 Update Rust crate zip to v9.0.2 2026-10-12 07:09:07 +02:00
renovate[bot] d0354bee1f Update Rust crate zstd to v0.14.2 2026-10-11 10:40:37 +02:00
renovate[bot] 13491f099d Update Rust crate zip to v9.0.1 (#395)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-10-10 10:17:23 +01:00
renovate[bot] b7c9aaaf1b Update Rust crate zstd to v0.14.1 2026-10-10 07:13:23 +02:00
renovate[bot] 64f74b93fd Update Rust crate zip to v9 2026-10-09 13:25:41 +02:00
oech3 ad4ce76066 GnuTests.yml: use ubuntu-latest runner 2026-10-07 09:48:43 +02:00
Sylvestre Ledru c263fb1c6a README is a file, not a directory 2026-10-07 07:27:45 +02:00
oech3 20658bbf49 build-gnu.sh: harden downloading process of tarball 2026-10-06 09:40:18 +02:00
oech3 f7858a00e9 build-gnu.sh: fetch tarball instead of git clone (#388) 2026-10-05 08:23:18 +01:00
renovate[bot] 37ce07b24d chore(deps): update rust crate libc to v0.2.190 2026-10-04 11:16:33 +02:00
oech3 dfdf02bc55 removed unused crates 2026-10-04 10:17:43 +02:00
renovate[bot] 93e211febe chore(deps): update dawidd6/action-download-artifact action to v27 2026-09-30 07:18:34 +02:00
renovate[bot] 9e9f63f52c chore(deps): update dawidd6/action-download-artifact action to v26 2026-09-29 07:03:49 +02:00
oech3 140afd8003 Cargo.toml: drop release-fast profile 2026-09-27 11:39:36 +02:00
oech3 136219668e Cargo.toml: remove unused rlimit 2026-09-27 11:39:29 +02:00
oech3 53772fea0a codspeed.yml: faster setup 2026-09-27 08:13:30 +02:00
Sylvestre Ledru b983c36b84 move flate2 to dev-dependencies in the root crate (#374)
The root `tarapp` crate only uses flate2 in `tests/`; `uu_tar` declares
its own flate2 dependency for `src/uu/tar/src/compression.rs`. Keep the
workspace entry, just declare it where it is actually used.
2026-09-26 21:48:00 +02:00
oech3 d819e6e73f explicit flate2's feature & sort crates (#372) 2026-09-26 15:05:46 +02:00