Daniel Hofstetter
f180be4265
Merge pull request #8326 from uutils/renovate/clap_mangen-0.x-lockfile
...
CICD / Build (push) Blocked by required conditions
CICD / Style/cargo-deny (push) Waiting to run
CICD / Style/deps (push) Waiting to run
CICD / Documentation/warnings (push) Waiting to run
CICD / MinRustV (push) Waiting to run
CICD / Test all features separately (push) Blocked by required conditions
CICD / Dependencies (push) Waiting to run
CICD / Build/Makefile (push) Blocked by required conditions
CICD / Build/stable (push) Blocked by required conditions
CICD / Build/nightly (push) Blocked by required conditions
CICD / Binary sizes (push) Blocked by required conditions
CICD / Tests/BusyBox test suite (push) Blocked by required conditions
CICD / Tests/Toybox test suite (push) Blocked by required conditions
CICD / Code Coverage (push) Waiting to run
CICD / Separate Builds (push) Waiting to run
CICD / Build/SELinux (push) Blocked by required conditions
GnuTests / Run GNU tests (push) Waiting to run
Android / Test builds (push) Waiting to run
Code Quality / Style/toml (push) Waiting to run
Code Quality / Style/format (push) Waiting to run
Code Quality / Style/Python (push) Waiting to run
Code Quality / Style/lint (push) Waiting to run
Code Quality / Style/spelling (push) Waiting to run
Code Quality / Pre-commit hooks (push) Waiting to run
FreeBSD / Style and Lint (push) Waiting to run
FreeBSD / Tests (push) Waiting to run
chore(deps): update rust crate clap_mangen to v0.2.28
2025-07-10 08:44:47 +02:00
Daniel Hofstetter
e8d9ccc9e5
Merge pull request #8323 from uutils/renovate/zip-4.x-lockfile
...
chore(deps): update rust crate zip to v4.3.0
2025-07-10 08:29:16 +02:00
renovate[bot]
f7d8fd4a73
chore(deps): update rust crate clap_mangen to v0.2.28
2025-07-10 05:59:44 +00:00
Daniel Hofstetter
c1b137bb09
Merge pull request #8325 from uutils/renovate/clap_complete-4.x-lockfile
...
chore(deps): update rust crate clap_complete to v4.5.55
2025-07-10 07:59:04 +02:00
renovate[bot]
be71a45618
chore(deps): update rust crate clap_complete to v4.5.55
2025-07-10 02:59:31 +00:00
renovate[bot]
7d743bcb0f
chore(deps): update rust crate clap to v4.5.41
2025-07-10 02:59:23 +00:00
renovate[bot]
85c6a24efe
chore(deps): update rust crate zip to v4.3.0
2025-07-09 20:37:03 +00:00
Daniel Hofstetter
745ae4b10f
Merge pull request #8292 from RenjiSann/collating
...
CICD / Style/cargo-deny (push) Waiting to run
CICD / Test all features separately (push) Blocked by required conditions
CICD / Build (push) Blocked by required conditions
CICD / Style/deps (push) Waiting to run
CICD / Documentation/warnings (push) Waiting to run
CICD / MinRustV (push) Waiting to run
CICD / Dependencies (push) Waiting to run
CICD / Build/Makefile (push) Blocked by required conditions
CICD / Build/stable (push) Blocked by required conditions
CICD / Build/nightly (push) Blocked by required conditions
CICD / Binary sizes (push) Blocked by required conditions
CICD / Tests/BusyBox test suite (push) Blocked by required conditions
CICD / Tests/Toybox test suite (push) Blocked by required conditions
CICD / Code Coverage (push) Waiting to run
CICD / Separate Builds (push) Waiting to run
CICD / Build/SELinux (push) Blocked by required conditions
GnuTests / Run GNU tests (push) Waiting to run
Android / Test builds (push) Waiting to run
Code Quality / Style/format (push) Waiting to run
Code Quality / Style/lint (push) Waiting to run
Code Quality / Style/spelling (push) Waiting to run
Code Quality / Style/toml (push) Waiting to run
Code Quality / Style/Python (push) Waiting to run
Code Quality / Pre-commit hooks (push) Waiting to run
FreeBSD / Style and Lint (push) Waiting to run
FreeBSD / Tests (push) Waiting to run
i18n: further work, expr support
2025-07-09 16:24:13 +02:00
Johnothan King
6d30b9110a
tr: Fix regression causing read error with sockets ( #8083 )
...
* tr: Fix regression causing read error with sockets
The test used for determining if a file descriptor
tested with fstat points to a directory is traditionally
done by using the S_IFMT mask[^1][^2], e.g.:
#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
In Rust, this translates to 'm & libc::S_IFMT == libc::S_IFDIR'.
is_stdin_directory() uses 'has!(mode, S_IFDIR)', which is
**not** equivalent and causes non-directory sockets to be
incorrectly recognized as directories. This causes uu-tr
to break when used with all sockets created with socketpair,
including ksh93 pipes[^3]. Below is an example Rust program
demonstrating why the current check is bogus:
fn main() {
use nix::sys::socket::{socketpair, SockFlag, AddressFamily, SockType};
use nix::sys::stat::fstat;
use libc::{S_IFDIR, S_IFMT, mode_t};
let (_fd1, fd2) = socketpair(AddressFamily::Unix, SockType::Stream, None, SockFlag::empty()).unwrap();
let mode = fstat(&fd2).unwrap().st_mode as mode_t;
if mode & S_IFMT == S_IFDIR { // Equivalent to S_ISDIR()
println!("Not reached"); // Not a dir, so unreachable
}
if mode & S_IFDIR == S_IFDIR { // Bogus check for S_IFDIR
println!("BAD");
}
}
- is_stdin_directory(): Fix the regression introduced in 3e4221a4
by replacing the bogus check with one equivalent to S_ISDIR().
- test_tr.rs: Add a regression test for this bug.
[^1]: https://sourceware.org/git/?p=glibc.git;a=blob;f=io/sys/stat.h;h=4bea9e9a#l123
[^2]: https://git.musl-libc.org/cgit/musl/tree/include/sys/stat.h?id=047a1639#n51
[^3]: cc5e0692/src/cmd/ksh93/sh/io.c (L98-L102)
Fixes https://github.com/uutils/coreutils/issues/7658
* Add comment explaining rationale
Also fix cargo clippy lint.
(In case it isn't obvious, I'm fairly new to Rust)
* Fix more lint
2025-07-09 15:47:16 +02:00
Dorian Peron
bb8744f115
i18n: small refactor, add decimal stuff
2025-07-08 12:02:48 +02:00
renovate[bot]
13243caa24
chore(deps): update rust crate indicatif to 0.18.0
2025-07-04 12:30:38 +00:00
Daniel Hofstetter
931d388664
Merge pull request #8306 from uutils/renovate/notify-8.x
...
CICD / Build (push) Blocked by required conditions
CICD / Style/cargo-deny (push) Waiting to run
CICD / Style/deps (push) Waiting to run
CICD / Documentation/warnings (push) Waiting to run
CICD / MinRustV (push) Waiting to run
CICD / Dependencies (push) Waiting to run
CICD / Build/Makefile (push) Blocked by required conditions
CICD / Build/stable (push) Blocked by required conditions
CICD / Build/nightly (push) Blocked by required conditions
CICD / Binary sizes (push) Blocked by required conditions
CICD / Tests/BusyBox test suite (push) Blocked by required conditions
CICD / Tests/Toybox test suite (push) Blocked by required conditions
CICD / Code Coverage (push) Waiting to run
CICD / Separate Builds (push) Waiting to run
CICD / Test all features separately (push) Blocked by required conditions
CICD / Build/SELinux (push) Blocked by required conditions
GnuTests / Run GNU tests (push) Waiting to run
Android / Test builds (push) Waiting to run
Code Quality / Style/format (push) Waiting to run
Code Quality / Style/lint (push) Waiting to run
Code Quality / Style/spelling (push) Waiting to run
Code Quality / Style/toml (push) Waiting to run
Code Quality / Style/Python (push) Waiting to run
Code Quality / Pre-commit hooks (push) Waiting to run
FreeBSD / Style and Lint (push) Waiting to run
FreeBSD / Tests (push) Waiting to run
chore(deps): update rust crate notify to v8.1.0
2025-07-03 17:27:29 +02:00
Daniel Hofstetter
faa2dfada8
Merge pull request #8056 from nyurik/udeps
...
chore: remove unused dependencies
2025-07-03 16:53:17 +02:00
renovate[bot]
aa64151dc0
chore(deps): update rust crate notify to v8.1.0
2025-07-03 14:30:16 +00:00
Yuri Astrakhan
4fa9af4953
chore: cleanup unused dependencies
2025-07-02 19:47:23 -04:00
renovate[bot]
b454bcf918
chore(deps): update rust crate rust-ini to v0.21.2
2025-07-02 19:44:30 +00:00
Sylvestre Ledru
0923b92921
Merge pull request #8289 from cakebaker/bump_linux_raw_sys
...
Bump `linux-raw-sys`
2025-07-02 10:12:48 +02:00
renovate[bot]
2032a63889
chore(deps): update rust crate indicatif to v0.17.12
2025-06-30 18:42:36 +00:00
Daniel Hofstetter
ff1a211c6a
Bump linux-raw-sys from 0.9 to 0.10
2025-06-30 15:28:55 +02:00
Sylvestre Ledru
3f0b87e319
l10n: port stat for translation + use thiserror + add french
2025-06-28 21:36:18 +02:00
renovate[bot]
71cf24c8d2
chore(deps): update rust crate xattr to v1.5.1
2025-06-25 14:35:47 +00:00
Daniel Hofstetter
64f308a35b
Merge pull request #8245 from sylvestre/l10n-chmod-2
...
CICD / Build (push) Blocked by required conditions
CICD / Tests/BusyBox test suite (push) Blocked by required conditions
CICD / Tests/Toybox test suite (push) Blocked by required conditions
CICD / Code Coverage (push) Waiting to run
CICD / Separate Builds (push) Waiting to run
CICD / Style/cargo-deny (push) Waiting to run
CICD / Style/deps (push) Waiting to run
CICD / Documentation/warnings (push) Waiting to run
CICD / MinRustV (push) Waiting to run
CICD / Test all features separately (push) Blocked by required conditions
CICD / Dependencies (push) Waiting to run
CICD / Build/Makefile (push) Blocked by required conditions
CICD / Build/stable (push) Blocked by required conditions
CICD / Build/nightly (push) Blocked by required conditions
CICD / Binary sizes (push) Blocked by required conditions
CICD / Build/SELinux (push) Blocked by required conditions
GnuTests / Run GNU tests (push) Waiting to run
Android / Test builds (push) Waiting to run
Code Quality / Style/format (push) Waiting to run
Code Quality / Style/lint (push) Waiting to run
Code Quality / Style/spelling (push) Waiting to run
Code Quality / Style/toml (push) Waiting to run
Code Quality / Style/Python (push) Waiting to run
Code Quality / Pre-commit hooks (push) Waiting to run
FreeBSD / Style and Lint (push) Waiting to run
FreeBSD / Tests (push) Waiting to run
l10n: port chmod for translation + add french
2025-06-25 09:30:58 +02:00
Sylvestre Ledru
2b5dfe612c
Merge pull request #8179 from RenjiSann/locale-aware-quoting
...
i18n: Locale-aware quoting
2025-06-25 08:39:19 +02:00
Dorian Peron
231b0e5c59
uucore: retrieve the Locale encoding from env variables
2025-06-25 00:47:51 +02:00
Sylvestre Ledru
d8ba6c01e4
l10n: port chmod for translation + add french
2025-06-25 00:16:11 +02:00
Sylvestre Ledru
e79bc8790b
l10n: port rm for translation + add french
2025-06-25 00:02:36 +02:00
Sylvestre Ledru
ebc4fbcaf2
l10n: port fmt for translation + use thiserror + add french
2025-06-23 21:09:19 +02:00
Daniel Hofstetter
b084badc70
Merge pull request #8254 from sylvestre/l10n-stdbuf
...
l10n: port stdbuf for translation + add french
2025-06-23 10:44:03 +02:00
renovate[bot]
7d2fc68889
chore(deps): update rust crate zip to v4.2.0
2025-06-23 06:59:11 +00:00
Sylvestre Ledru
564daa89c8
l10n: port stdbuf for translation + add french
2025-06-22 23:29:59 +02:00
Daniel Hofstetter
9fb8cd2e50
Bump phf & phf_codegen from 0.11.2 to 0.12.1
2025-06-20 17:07:57 +02:00
Daniel Hofstetter
dcbb5936eb
Bump selinux crates
...
selinux from 0.5.1 to 0.5.2, selinux-sys from 0.6.14 to 0.6.15
2025-06-19 10:25:31 +02:00
renovate[bot]
af90dd4b16
fix(deps): update rust crate libc to v0.2.174
2025-06-17 20:48:17 +00:00
renovate[bot]
511dd97547
chore(deps): update rust crate zip to v4.1.0
2025-06-15 06:13:59 +00:00
Daniel Hofstetter
0a1a36d900
Merge pull request #8166 from uutils/renovate/libc-0.x-lockfile
...
fix(deps): update rust crate libc to v0.2.173
2025-06-14 08:00:19 +02:00
renovate[bot]
a50270a5c8
fix(deps): update rust crate libc to v0.2.173
2025-06-13 19:29:29 +00:00
renovate[bot]
911a197829
chore(deps): update rust crate jiff to v0.2.15
2025-06-13 19:29:21 +00:00
renovate[bot]
7a100c9a5e
chore(deps): update rust crate windows-sys to v0.60.2
2025-06-12 20:47:39 +00:00
Daniel Hofstetter
3eb1cece30
Bump windows-sys from 0.59.0 to 0.60.1
2025-06-12 11:09:39 +02:00
renovate[bot]
95a6fcb578
chore(deps): update rust crate memchr to v2.7.5
2025-06-11 16:10:31 +00:00
Daniel Hofstetter
7e4877fb30
Merge pull request #8137 from uutils/renovate/unicode-width-0.x-lockfile
...
CICD / Build (push) Blocked by required conditions
CICD / Style/cargo-deny (push) Waiting to run
CICD / Style/deps (push) Waiting to run
CICD / Documentation/warnings (push) Waiting to run
CICD / MinRustV (push) Waiting to run
CICD / Dependencies (push) Waiting to run
CICD / Build/Makefile (push) Blocked by required conditions
CICD / Build/stable (push) Blocked by required conditions
CICD / Build/nightly (push) Blocked by required conditions
CICD / Binary sizes (push) Blocked by required conditions
CICD / Tests/BusyBox test suite (push) Blocked by required conditions
CICD / Tests/Toybox test suite (push) Blocked by required conditions
CICD / Code Coverage (push) Waiting to run
CICD / Separate Builds (push) Waiting to run
CICD / Test all features separately (push) Blocked by required conditions
CICD / Build/SELinux (push) Blocked by required conditions
GnuTests / Run GNU tests (push) Waiting to run
Android / Test builds (push) Waiting to run
Code Quality / Style/format (push) Waiting to run
Code Quality / Style/lint (push) Waiting to run
Code Quality / Style/spelling (push) Waiting to run
Code Quality / Style/toml (push) Waiting to run
Code Quality / Style/Python (push) Waiting to run
FreeBSD / Style and Lint (push) Waiting to run
FreeBSD / Tests (push) Waiting to run
chore(deps): update rust crate unicode-width to v0.2.1
2025-06-10 08:54:49 +02:00
Sylvestre Ledru
de7b1469f7
Merge pull request #8133 from uutils/renovate/clap_mangen-0.x-lockfile
...
chore(deps): update rust crate clap_mangen to v0.2.27
2025-06-10 07:58:32 +02:00
Sylvestre Ledru
355af9f15a
Merge pull request #8132 from uutils/renovate/clap_complete-4.x-lockfile
...
chore(deps): update rust crate clap_complete to v4.5.54
2025-06-10 07:58:24 +02:00
Sylvestre Ledru
a9046788f0
Merge pull request #8129 from uutils/renovate/clap-4.x-lockfile
...
chore(deps): update rust crate clap to v4.5.40
2025-06-10 07:58:10 +02:00
renovate[bot]
2c01bc47eb
chore(deps): update rust crate unicode-width to v0.2.1
2025-06-10 01:40:18 +00:00
renovate[bot]
a606a52817
chore(deps): update rust crate clap_mangen to v0.2.27
2025-06-09 20:07:42 +00:00
renovate[bot]
e7407bc0c3
chore(deps): update rust crate clap_complete to v4.5.54
2025-06-09 20:07:35 +00:00
renovate[bot]
3d0adec219
chore(deps): update rust crate clap_complete to v4.5.53
2025-06-09 18:53:50 +00:00
renovate[bot]
61b1f95c75
chore(deps): update rust crate clap to v4.5.40
2025-06-09 18:53:43 +00:00
Sylvestre Ledru
09bb35e11e
test: move to thiserror
2025-06-09 11:00:37 +02:00