5812 Commits
Author SHA1 Message Date
Jake Wallin dd06499700 mknod: warn when an explicit security context is ignored 2026-10-16 11:20:10 +02:00
Jake Wallin 781b4991d2 install: warn when an explicit security context is ignored 2026-10-16 11:04:19 +02:00
Jake Wallin 79ad53e5b3 cp: warn when an explicit security context is ignored 2026-10-16 10:45:47 +02:00
Sichen 249b4b6385 tests/nohup: check the escaped name of a non-UTF-8 command
Check that stderr includes the escaped command name, as the
corresponding nice test does.
2026-10-16 10:05:25 +02:00
Jake Wallin 175f6e1c38 csplit: accept non-UTF-8 input 2026-10-16 03:00:58 +02:00
Jake Wallin d5a8979c47 install: report why a target cannot be used as a directory 2026-10-15 21:21:25 +02:00
Devel b136ecacfc cspell: fix a few typos and add a few terms 2026-10-15 21:00:12 +02:00
Jake Wallin 72e508657d pathchk: reject empty paths on WASI 2026-10-15 19:55:19 +02:00
Jake Wallin 2fb77e8b92 mv: diagnose directory overwrites of symlink destinations
Check the destination entry without following its symlink target so missing
or inaccessible referents do not fall through to a raw rename error.
Extend the regression to cover existing and dangling symlinks.

Closes #15358
2026-10-15 10:39:12 +02:00
Yunus Emre Ozen 0982bd1e2f ls: update has_acl docs for macOS and let the ACL test fail 2026-10-15 09:35:18 +02:00
Yunus Emre Ozen ba880c8366 ls: show the ACL '+' on macOS
On macOS the ACL isn't stored as a listed xattr, and most files carry some
xattr (e.g. com.apple.provenance), so ls -l hard-coded is_acl_set = false.
Check for an extended ACL with acl_get_file / acl_get_link_np instead and
enable the check on macOS.

Fixes #15273
2026-10-15 09:35:18 +02:00
wtcpython 59cd0b5eab cat: distinguish read and write errors 2026-10-15 09:30:09 +02:00
Igor Giamoniano 7654e67ea9 dd: shorten comments; tests: OpenBSD detects seekable stdout 2026-10-15 02:16:37 +02:00
Igor Giamoniano 28419c9b88 dd: tests: account for platforms without seekable stdout detection 2026-10-15 02:16:37 +02:00
Igor Giamoniano 03967cb719 dd: only extend the output at the end, and report a failed truncate
Refs #13403
2026-10-15 02:16:37 +02:00
Jake Abendroth c76f272551 sort: keep to its own temporary directory and files
Temporary files were created, reopened and deleted by path, and cleanup
emptied the temporary directory by path. Once the directory's path led to
another directory, sort read the files there as its own and deleted them.

The directory and each file are identified by device and inode when
created. Files are created and deleted through a descriptor of the
directory that is checked first, and reopened only if they are still the
file sort created. Cleanup deletes only the names sort created. Redox and
non-Unix systems keep the path-based code.

The directory descriptor is closed after each use, so with merges creating
their output before opening their inputs, sort needs no more file
descriptors than before.
2026-10-14 22:28:19 +02:00
Sichen 114a16c1ed nice: quote command names in exec errors
Use `quote()`, as nohup does, instead of converting the command name
lossily. Invalid UTF-8 bytes are now escaped rather than replaced with
U+FFFD, and valid names use the quoted form printed by GNU in the C
locale.

Extend the test to check stderr for the escaped name.
2026-10-14 22:21:29 +02:00
Sichen 3c6cb13667 nohup: accept non-UTF-8 commands and arguments
nohup parsed COMMAND and its arguments as String, so clap rejected the
whole invocation when any value was not valid UTF-8. It exited 125
without running the command.

Read COMMAND and its arguments as OsString and pass them through
unchanged. The existing "failed to run command" diagnostic already
quotes an OsString correctly.
2026-10-14 22:21:29 +02:00
Sichen e0c239ce9d nice: accept non-UTF-8 commands and arguments
nice parsed COMMAND and its arguments as String, so clap rejected the
whole invocation when any value was not valid UTF-8. The command never
ran and nice exited 125.

Read COMMAND and the remaining arguments as OsString and pass them to
exec unchanged. Convert the command name lossily only when it is needed
for the diagnostic after exec fails.

The adjustment remains a String. GNU rejects a non-UTF-8 adjustment too;
only the diagnostic differs.
2026-10-14 22:21:29 +02:00
Matt Van Horn 5b388ada5e split: address review feedback on piped --number input
Move InputSize above the get_input_size doc comment so the comment
documents the function again, drop the now unused
split-error-cannot-determine-input-size message from the locale files,
and remove the extra BufReader around the in-memory chain, which is
already BufRead. Add piped -n 3 and -n l/3 tests that check the
created xaa, xab, and xac files.
2026-10-14 22:20:09 +02:00
Matt Van Horn 63fad511ca fix(split): accept non-seekable input for --number by spooling to a temp file 2026-10-14 22:20:09 +02:00
Eduardo Rodrigues d77f9f4ebe tests(nproc): enable wasi integration tests 2026-10-14 22:18:25 +02:00
Yunus Emre Ozen c1565db1f5 cut: accept an output delimiter that starts with '-'
Closes #15341
2026-10-14 15:22:58 +02:00
Eduardo Rodrigues 9d03606bdd tests(shred): enable wasi integration tests 2026-10-14 13:52:47 +02:00
Etienne Cordonnier 6f30556ecc tests: util_version: read CARGO_PKG_VERSION at compile time
CARGO_PKG_VERSION is only set at runtime in the environment of the tests
run by cargo, so the test panicked when the test executable was run
another way. Use env! to get it at compile time, as it is not a path.

Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
2026-10-14 11:36:02 +02:00