Commit Graph
19522 Commits
Author SHA1 Message Date
b22013ab79 ls: ls -lF symlink target indicators (#11554)
---------

Co-authored-by: Guillem L. Jara <4lon3ly0@tutanota.com>
Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
2026-05-28 13:08:08 +02:00
AnthonyandGitHub 179b977b93 ln: add WASI support via symlink_path (#11713) 2026-05-28 12:53:59 +02:00
Sylvestre LedruandDaniel Hofstetter 5e65ceb4a7 docs: add fuzz pointer, AI policy, playground link, and Ubuntu note 2026-05-28 10:55:14 +02:00
Dima GerasimovandDaniel Hofstetter be8018656e sort: fix incorrect sort ordering with long line inputs
The issue is that in `chunks.rs`, `sep_iter` is relative to `search_start`.
But the returned value needs to be absolute position relative to the `buffer`.
2026-05-28 10:38:12 +02:00
Dima GerasimovandDaniel Hofstetter 565f118f8c sort: add a test reproducing failure during sort --merge
sort -m takes: 3 lines, 96003 bytes

and emits: 4 lines, 96004 bytes

The output line lengths before the fix are:

```
a x 32000
b x 23809
b x 8191
c x 32000
```

So it splits one of the lines into two (23809 + 8191 = 32000).

In addition, the output becomes unsorted because the shorter 'b' fragment sorts before the longer 'b' fragment.

The issue is that in `chunks.rs`, `sep_iter` is relatve to `search_start`. But the returned value needs to be absolute position relative to the `buffer`.

We end up with these particular numbers because
- in merge.rs, initial chunk is created as `RecycledChunk::new(8 * 1024)` (8192 bytes)
- `search_start = 8192`; newline is at absolute buffer index `32000`
- `memchr_iter` returns `32000 - 8192 = 23808`, and newline adds + 1 byte
2026-05-28 10:38:12 +02:00
Sylvestre LedruandDaniel Hofstetter 77bb522c0c prepare release 0.9.0 2026-05-28 10:31:37 +02:00
oech3andSylvestre Ledru c7cf6fd825 make.yml: try to fix Cygwin CI 2026-05-28 07:55:03 +02:00
oech3andSylvestre Ledru aaf4a353c3 tee: simplify code 2026-05-27 22:27:23 +02:00
Daniel HofstetterandSylvestre Ledru 2c37153c7e mktemp: ensure that "-q XX" shows error msg 2026-05-27 20:39:52 +02:00
oech3andDaniel Hofstetter e451ddf733 simplify uucore::pipes::send_n_bytes 2026-05-27 18:09:03 +02:00
oech3andSylvestre Ledru a17c0be2ce pipes.rs: alias std::io::Result<Result<(), ()>> 2026-05-27 15:37:30 +02:00
oech3andDaniel Hofstetter 8de3238dca buf_copy: remove thin wrapper & useless conversion 2026-05-27 10:07:44 +02:00
hlsxxandDaniel Hofstetter fa6d68d6c2 refactor(sync): remove unnecessary files move 2026-05-27 09:31:28 +02:00
renovate[bot]andDaniel Hofstetter 712a31f434 chore(deps): update rust crate memchr to v2.8.1 2026-05-27 09:04:22 +02:00
oech3andDorian Péron af0c5857d4 wc: reduce lines of code 2026-05-26 19:00:53 +02:00
renovate[bot]andDaniel Hofstetter 65103b2b71 chore(deps): update rust crate jiff to v0.2.27 2026-05-26 17:56:58 +02:00
oech3andDaniel Hofstetter 5dd9f377db pipes.rs: replace bool by Result<(),()> 2026-05-26 17:17:27 +02:00
yor1xdandDaniel Hofstetter 9d3bafc23e mktemp: fix hidden file creation with dot prefix 2026-05-26 15:52:32 +02:00
dragutreisandDorian Péron 83a5cd9522 tail: avoid unnecessary pipe2 syscall when stdout is already a pipe
Use splice_unbounded_auto instead of splice_unbounded_broker to avoid
creating a broker pipe when stdout is already a pipe (e.g., when piping
to another command with |).
2026-05-26 14:00:10 +02:00
oech3andDorian Péron 259813f9e9 Improve documents for splice modules 2026-05-26 13:56:36 +02:00
oech3andSylvestre Ledru 7d29aeab05 pipes.rs: dedup code by including fallback to splice_exact 2026-05-26 13:31:47 +02:00
oech3andSylvestre Ledru c1a3f6f3a3 nproc: Reject quota with some schedulers 2026-05-26 13:23:31 +02:00
Etienne CordonnierandDaniel Hofstetter 76c63ee6fd install: update comments and tests
Fix doc comments in safe_traversal that still described the old behavior
of replacing symlinks with real directories. Rename and deduplicate tests
that were originally written as race-condition regression tests but now
just verify symlink-following behavior.

Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
2026-05-26 10:14:21 +02:00
Matt Van HornandDaniel Hofstetter f13b92e699 chore: remove duplicate words in six comments
All comment / doc-comment changes.

- src/uucore/src/lib/features/checksum/validate.rs L471: "must set it the the detected" -> "must set it to the detected" (also adds the missing "to")
- src/uucore/src/lib/features/uptime.rs L416: "logged in in a human-readable format" -> "logged in, in a human-readable format"
- src/uu/od/src/output_info.rs L115: "the width is width of the the type" -> "the width is the width of the type"
- src/uu/split/src/filenames.rs L113: "Determine if the the output file names" -> "Determine if the output file names"
- src/uu/tail/src/paths.rs L228: "if `path` is is a file type" -> "if `path` is a file type"
- src/uu/chcon/src/chcon.rs L527: "then is is assumed to be valid" -> "then it is assumed to be valid"
2026-05-26 10:04:19 +02:00
renovate[bot]andDaniel Hofstetter 4254d7afd2 chore(deps): update rust crate jiff to v0.2.26 2026-05-26 08:18:04 +02:00