Commit Graph
11559 Commits
Author SHA1 Message Date
xtqqczze 5ff1de4dd5 uucore: support process feature for haiku
Add Haiku to the platforms supporting the `process` feature.

The feature builds successfully with Clippy:

```console
$ RUSTC_BOOTSTRAP=1 cargo clippy -q -Zbuild-std -p uucore --features process --all-targets --target x86_64-unknown-haiku >/dev/null 2>&1; echo $?
0
```
2026-09-15 20:09:34 +02:00
oech3 3850d089f5 fix cspell 2026-09-15 19:34:08 +02:00
nagendramohan c6b9e4f092 ln: keep the destination when a forced link fails
`ln -f A B` unlinked B before attempting the link, so a link that failed
for any reason other than the destination already existing (a missing
source, a directory source, a dangling symlink with -L) left B deleted.

Attempt the link first and remove an existing destination only after the
link reports EEXIST, matching GNU, so a failed link never destroys the
destination.

Fixes #14550

Signed-off-by: nagendramohan <nagendramohan1990@gmail.com>
2026-09-15 09:42:58 +02:00
oech3 94811cc297 cksum: use aws-lc instead of vendored openssl on MSVC to avoid perl 2026-09-15 09:06:31 +02:00
xtqqczze 5dbba49d50 chore: add missing newlines around spell-checker header 2026-09-15 09:04:19 +02:00
xtqqczze feebd94221 chore: add missing newlines after copyright header 2026-09-15 09:04:19 +02:00
Zhiwei Liang c3c07acf68 ls: use name sort for -u/-c in long format
Signed-off-by: Zhiwei Liang <zhiwei.liang@zliang.me>
2026-09-15 09:02:54 +02:00
xtqqczze 93c8043321 uucore: support fs feature for haiku
Add Haiku to the platforms supporting the `fs` feature.

The feature builds successfully with Clippy:

```console
$ RUSTC_BOOTSTRAP=1 cargo clippy -q -Zbuild-std -p uucore --features fs --all-targets --target x86_64-unknown-haiku >/dev/null 2>&1; echo $?
0
```
2026-09-15 09:02:40 +02:00
xtqqczze befedccfeb mknod: use dev_t type to avoid casting
Use `nix::sys::stat::dev_t` type for the device ID to avoid unnecessary `as` conversions.
2026-09-15 08:57:45 +02:00
Yusuf Efe bf06f912dc csplit: always create the final split, even when empty
The rest of the input only got its own split when something was left
after the patterns, or when every pattern was a line number with
--suppress-matched. GNU always ends with that split, so a suppressed
match on the last line or an offset reaching the end of the input left
one file short. A {*} regex is the exception: it has already consumed
the input by the time it stops matching.
2026-09-15 08:22:29 +02:00
Zhiwei Liang b6726cc6ad dir, vdir: match GNU default quoting
Apply escape quoting and TTY control-character display in Config instead of patching quoting_style in the dir and vdir wrappers.

Signed-off-by: Zhiwei Liang <zhiwei.liang@zliang.me>
2026-09-14 15:56:06 +02:00
wtcpython e2b5089553 cp: retain --no-preserve over later --preserve 2026-09-14 15:39:37 +02:00
Sachin Kudlur Siddappa 3b5338affd fix(ls): ensure ACL and capability markers respect dereference config 2026-09-14 12:01:13 +02:00
thy cd434435d6 chmod: do not check umask on skipped symlinks during recursion 2026-09-14 09:59:05 +02:00
Daniel Hofstetter 6f650915d6 date: allow multiple --reference 2026-09-14 09:21:07 +02:00
Nikola Lukovic 65b5ca4daf uucore(windows): rewrite fsext with safe Win32 wrappers, real free space and mount paths; df(windows): resolve paths by mount prefix 2026-09-14 09:06:23 +02:00
Sylvestre Ledru 9fa399eccb nohup: redirect the child's stderr like Unix does on Windows
A DETACHED_PROCESS child has no console, so leaving stderr on inherit()
dropped its output. Point it at the child's stdout the way replace_fds()
does with dup2_stderr(stdout()) on Unix: at nohup.out when stdout is a
terminal, at the existing redirection otherwise.

find_stdout() appends to nohup.out and reports it on stderr, so it is
called once and the handle is cloned for stderr rather than reopened.
2026-09-13 22:39:45 +02:00
Sylvestre Ledru 158668896a nohup: move platform code into platform/{unix,windows}.rs
Instead of scattering #[cfg(unix)] / #[cfg(windows)] through nohup.rs,
keep the platform-specific code in its own file behind a small shared
interface: prepare(), run() and set_output_file_mode().

The unix-only CannotDetach/CannotReplace variants move to a unix
PlatformError, so NohupError in nohup.rs is now platform independent.
2026-09-13 22:39:45 +02:00
Keith Hall bde787352b expr: switch to leftmost-longest regex matching behavior (#14527) 2026-09-13 18:56:43 +02:00
Tom D. 3e5503c8a8 tsort: add sequential file access hints on various plateforms 2026-09-13 18:45:56 +02:00
Daniel Hofstetter 85295bbf78 pr: list impls after the corresponding struct/enum 2026-09-13 17:04:26 +02:00
Daniel Hofstetter 5133a44842 pr: use position instead of find_position 2026-09-13 17:04:26 +02:00
Daniel Hofstetter e09b740c1c pr: remove a regex, use "==" instead 2026-09-13 17:04:26 +02:00
thy b125b38bbe cp: fix copying entries sharing parent directory name with -R . 2026-09-13 14:19:31 +02:00
xtqqczze a5d6966e38 fix: missing_const_for_thread_local clippy lint
The `uucore` package now builds successfully with Clippy for the `i686-unknown-haiku` target:

```console
$ RUSTC_BOOTSTRAP=1 cargo clippy -q -Zbuild-std -p uucore --all-targets --target i686-unknown-haiku >/dev/null 2>&1; echo $?
0
```
2026-09-12 23:45:06 +02:00