Commit Graph
592 Commits
Author SHA1 Message Date
oech3 c98a5dcfad fetch-gnu.sh: remove unnecessary 2 spaces (#13792) 2026-08-07 13:20:32 +02:00
Sylvestre Ledru 4c84e64f2d publish.sh: adjust to the new API 2026-08-06 10:13:37 +02:00
Sylvestre Ledru e05f379eb4 prepare release 0.10.0 2026-08-03 09:36:01 +02:00
oech3 bac4f0e359 GnuTests: backport cat/splice.sh 2026-07-25 16:30:04 +02:00
Sylvestre Ledru 10f5eef691 util: replace IOError alias with OSError 2026-07-25 13:50:16 +02:00
Sylvestre Ledru 49b696a9f2 util: drop empty string argument to print 2026-07-25 13:50:16 +02:00
Sylvestre Ledru 40aa01fedd util: use f-strings instead of percent formatting 2026-07-25 13:50:16 +02:00
Sylvestre Ledru a903cfd760 docs,util: use specific exception types instead of bare Exception 2026-07-25 13:50:16 +02:00
Sylvestre Ledru 470b8ab4be util: apply ruff format to compare_test_results.py 2026-07-25 13:50:16 +02:00
Sylvestre Ledru 896b8555e5 util,docs: sort Python imports (ruff I001) 2026-07-25 13:50:16 +02:00
Sylvestre Ledru a5a863eb0b util: fix Python style issues flagged by ruff
- compare_gnu_result.py: use context managers for open(), use next(iter()) instead of [0] slice
- compare_size_results.py: raise TypeError instead of ValueError for invalid type (TRY004)
- compare_test_results.py: flatten nested if statements (SIM102), use writelines (FURB122)
- analyze-gnu-results.py: use .values() when dict values are the only thing used (PERF102)
2026-07-24 22:03:19 +02:00
Alex Chen 20bad753ad fix(ci): keep coverage ACL with bounded %4m profraw pool
Default ACL still keeps umask(0777) profiles owner-writable, but restore
LLVM's online-merge pool (%4m) instead of one file per process.

Signed-off-by: Alex Chen <l46983284@gmail.com>
2026-07-23 00:00:06 +02:00
Alex Chen a92e1b4429 fix(ci): keep coverage profraw writable under umask 0777 tests
Some uutests set umask(0777) before spawning the utility. LLVM profile
files created under that umask can be mode 000; later writes fail with
Permission denied on stderr and break exact asserts (e.g. mkfifo).

Prepare the profraw directory with a default owner-write ACL when
setfacl is available (hard-fail under CI), use coverage-%p-%m.profraw,
and install acl on the coverage Ubuntu job.

Signed-off-by: Alex Chen <l46983284@gmail.com>
2026-07-23 00:00:06 +02:00
Sylvestre Ledru 4430794550 mv: regression test + strace check for cross-device O_NOFOLLOW (#10015) (#12468)
* mv: regression test + strace check for cross-device O_NOFOLLOW (#10015)

* spell-checker: add ELOOP to jargon wordlist
2026-07-05 12:52:35 +02:00
Sylvestre Ledru 54188d9927 util: re-point GNU test harness at current checkout in run-gnu-test.sh (#13163) 2026-07-05 12:52:11 +02:00
oech3 338bbc02e2 GnuTests: remove LD_PRELOAD from nproc-quota.sh & avoid 0 period (#13255) 2026-07-04 10:31:06 +02:00
Sylvestre Ledru b9d8ff64c2 rebase of the env patch 2026-06-18 19:58:14 +02:00
can1357 e982e1e395 env: match GNU error messages for variable expansion errors 2026-06-18 19:58:14 +02:00
oech3 e62a1ff514 GnuTests (SMACK): bump busybox URL 2026-06-10 14:26:56 +02:00
Sylvestre Ledruandcan1357 7cfc74e47f chcon: anchor recursive relabel resolution to traversal dirfd (#12566)
---------

Co-authored-by: can1357 <me@can.ac>
2026-06-05 22:58:32 +02:00
Sylvestre Ledruandcan1357 58040feb5c split: harden output open path against TOCTOU target swaps (#12565)
Co-authored-by: can1357 <me@can.ac>
2026-06-05 18:09:05 +02:00
Sylvestre Ledru 3222b4aa52 util: move touch/head TOCTOU checks into check-toctou.sh 2026-06-05 17:58:26 +02:00
Sylvestre Ledru c004672c5e mkfifo: drop path-based chmod to close TOCTOU race; switch to rustix (#10020) (#12174)
(except on mac)
2026-06-05 15:52:53 +02:00
Sylvestre Ledru 7d27b3baa1 head: add TOCTOU regression tests and fix comment typo (#12637)
Follow-up to the metadata TOCTOU fix (#11972, PR #12439):

- Add a syscall-level regression guard in util/check-safe-traversal.sh:
  under strace, head must read metadata from the open descriptor
  (fstat/statx on the fd) and must not stat the path before opening it.
  Verified this fails on the pre-fix code and passes after.
- Add an integration test asserting that an unreadable file produces an
  error but no "==> name <==" header, matching GNU (the header is only
  printed after a successful open).
- Fix a stray paren in the Windows-branch comment.
2026-06-05 15:21:40 +02:00
Sylvestre Ledru 6d015356dd pwd: ignore non-option arguments, drop getcwd disabling from pwd-long test 2026-06-05 09:44:04 +02:00