Commit Graph
2391 Commits
Author SHA1 Message Date
xtqqczze 1554443636 uucore: remove process functions 2026-09-12 16:48:16 +02:00
oech3 7cb784bb66 nice: map Windows Priority Class 2026-09-09 22:40:01 +02:00
Tom D. bebeb9b4dc tsort: handle invalid utf8 in input (#14464)
Use byte-based token parsing and interning so tsort accepts invalid UTF-8.
2026-09-09 11:56:47 +02:00
oech3 9cc5daeca9 hostid: build for Windows & remove unsafe (#14427) 2026-09-08 14:05:29 +02:00
wtc e7720e3310 mv: replace fs_extra with std directory sizing (#14432)
Only estimate directory size when the progress bar is enabled.
2026-09-08 14:04:11 +02:00
wtcpython fc16cdcbe9 mv, sync, hostname, touch, rm: use safe std APIs on Windows
Replace unsafe Win32 calls and raw bitmasks with safe Rust standard library
APIs across Windows implementations:
- mv: use OpenOptionsExt access_mode for delete check
- sync: use File::sync_all instead of FlushFileBuffers
- hostname: remove redundant manual Winsock initialization
- touch: use io::Error::last_os_error instead of GetLastError
- rm: use Metadata::permissions().readonly() and FileTypeExt::is_symlink_dir()
2026-09-08 10:11:29 +02:00
xtqqczze c29429c13b fix: unused_dependencies cargo lint 2026-09-08 07:52:35 +02:00
wtcpython 35515138e2 expr: replace onig with fancy-regex
Replace the onig C-dependency in expr with the pure-Rust fancy-regex crate.
This removes the onig_sys C library dependency while preserving full POSIX BRE,
backreference, multibyte UTF-8, and C locale compatibility.
2026-09-07 11:31:36 +02:00
YodonTan 6579cc23f3 ohos: adapt uucore, hostid and date for aarch64-unknown-linux-ohos
Fixes required to build uutils/coreutils on HarmonyOS (aarch64-unknown-linux-ohos):

- uucore/fsext: statfs.f_type is u64 on OHOS; route it through the musl branch.
- hostid: implement gethostid locally (read /etc/hostid, else hash hostname)
  because the OHOS SDK libc dropped the symbol.
- date: pass through the system time zone ID from OH_TimeService_GetTimeZone
  and resolve it with embedded IANA tzdata (jiff-tzdb) via TimeZone::tzif,
  instead of relying on /etc/localtime or a POSIX-injected TZ. The OHOS-only
  helper is cfg-gated; non-OHOS code paths are byte-identical to upstream.

utmpx is intentionally left untouched: upstream #14252 disables it on OHOS
(no utmp data source there), and this PR defers to that approach.

Also syncs fuzz/Cargo.lock after adding the jiff-tzdb dependency.

Verified on-device: date matches system time (+0800 CST; 1987-06-01 -> +0900 CDT),
hostid behaves, builds pass on the non-utmpx feature set.
2026-09-07 10:31:31 +02:00
renovate[bot] 5f9e12ee31 chore(deps): update rust crate rstest to 0.27.0 2026-09-07 07:13:01 +02:00
Sylvestre Ledru 7ab040db47 chcon: walk directories with DirFd instead of fts
Reuse uucore::safe_traversal, the same traversal chown and chgrp already
use, in place of fts(3). Directories are still labelled post-order, so a
context that forbids reading one is applied only once its contents are
done.

Cycles are now caught with a set of the directories open on the current
path rather than FTS_DC, and the stale-stat retry goes away: entries are
stat'ed when they are visited rather than when the walk is opened.

chcon was the only fts-sys user in the workspace, so the dependency goes
with it.
2026-09-06 18:19:10 +02:00
xtqqczze f8569ef181 fix(deps): refactor nix package configuration 2026-09-02 09:29:11 +02:00
xtqqczze ef7749bb8e build(deps): update rust crates 2026-09-01 10:08:22 +02:00
Sylvestre Ledru ea31c1273c prepare release 0.11.0 2026-08-30 10:11:55 +02:00
wtcpython 63410845ef date: update parse_datetime to 0.16.0 to accept \v and \f as whitespace 2026-08-29 21:45:41 +02:00
Devel 64e026d069 date: strip errno when write to stdout fails (#14206)
* date: strip errno when write to stdout fails

date: use thiserror

update thiserror in fuzz

* date: alphabetize thiserror in dependencies
2026-08-29 21:44:36 +02:00
wtcandSylvestre Ledru 59fea307a3 tail: replace same-file with rustix and drop the dependency (#14208)
Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
2026-08-29 21:42:54 +02:00
renovate[bot] 6e01385f89 chore(deps): update rust crate dns-lookup to v4 2026-08-29 07:38:14 +02:00
xtqqczze 96c44c26a4 hostname: remove dns-lookup dependency 2026-08-28 15:34:34 +02:00
wtcpython 18f88742a8 install, comm: remove file_diff in favor of uucore::fs::are_files_identical 2026-08-24 14:06:05 +02:00
wtcpython 3d149809bc uucore, cat: remove winapi-util dependency in favor of windows-sys and std 2026-08-24 11:29:28 +02:00
wtcpython 522e9eb2a3 sort: replace binary-heap-plus and compare with std::collections::BinaryHeap
Use standard library BinaryHeap for multi-way merge sort and remove obsolete external dependencies binary-heap-plus and compare.
2026-08-24 08:46:54 +02:00
wtcpython b2091c6dde od: replace byteorder with std endian methods 2026-08-23 20:15:36 +02:00
renovate[bot] 3d09364e1d chore(deps): update rust crate icu_provider to v2.3.1 2026-08-21 09:33:20 +02:00
renovate[bot] ab3a09cbb5 chore(deps): update rust crate icu_collator to v2.3.1 2026-08-21 09:31:25 +02:00