Commit graph

13157 commits

Author SHA1 Message Date
Daniel Hofstetter
9fbfb2925f
Merge pull request #6575 from BenWiederhake/dev-cksum-nonutf8-filename
cksum: accept non-UTF-8 filenames
2024-07-30 14:31:46 +02:00
Krysztal Huang
bc0b4880e0
uucore: add getsid for process.rs (#6600)
* uucore: Add `getsid` for `process.rs`

* uucore: Changing the return type of the `getsid` function to `Result`

From the manpage of `getsid` we can find that the syscall may failed and set errno, so we have to process those case.

* uucore: Drop support of `getsid` for RedoxOS

* uucore: Add `getpid` for get pid of calling process.

* uucore: Add tests for `getsid` and `getpid`

* uucore: Fix tests failure for `test_getsid`

uucore: Fix tests failure for `test_getsid`

uucore: Fix tests failure for `test_getsid`

* uucore: Fix tests failure on FreeBSD

* uucore: Apply suggestions for `process.rs::tests::test_getsid`

Suggestions from @BenWiederhake , very thanks!
2024-07-29 22:09:12 +02:00
Sylvestre Ledru
810ec0f3cf
Merge pull request #6597 from Krysztal112233/fix_proc_info
uucore: Fix return value of `ProcessInfomation::tty`
2024-07-28 20:24:55 +02:00
Krysztal Huang
c0081d33b7
uucore: Remove mut of ProcessInformation::tty 2024-07-29 01:04:40 +08:00
Krysztal Huang
eafed7ede4
uucore: Refactor ProcessInformation::tty 2024-07-29 00:17:30 +08:00
Krysztal Huang
3494acc304
uucore: Fix proc-info feature's dependency. 2024-07-29 00:02:23 +08:00
Sylvestre Ledru
ecc64502f0
Merge pull request #6596 from uutils/renovate/selinux-0.x-lockfile
chore(deps): update rust crate selinux to v0.4.5
2024-07-28 09:35:34 +02:00
renovate[bot]
a584146f7a
chore(deps): update rust crate selinux to v0.4.5 2024-07-28 06:44:21 +00:00
Ben Wiederhake
1fcff25edc uucore: mark comment as rustdoc 2024-07-27 01:29:01 +02:00
Ben Wiederhake
6af9fd784e cksum: correctly output non-utf8 filename 2024-07-27 01:29:01 +02:00
Ben Wiederhake
244634b5c6 cksum: accept non-UTF-8 filenames
Fixes #6574.
2024-07-27 01:09:37 +02:00
Sylvestre Ledru
a55d9b359d
Merge pull request #6588 from matrixhead/part-symlink
cp: gnu test case `part-symlink` compatibility
2024-07-26 08:50:45 +02:00
Sylvestre Ledru
2c92020fd1
Merge pull request #6593 from Krysztal112233/add_tty
uucore: Split `tty` from `proc_info`
2024-07-26 08:47:41 +02:00
Daniel Hofstetter
058d94df63
Merge pull request #6594 from uutils/renovate/bstr-1.x-lockfile
chore(deps): update rust crate bstr to v1.10.0
2024-07-26 08:27:49 +02:00
renovate[bot]
d6d450a4a8
chore(deps): update rust crate bstr to v1.10.0 2024-07-26 03:10:52 +00:00
mhead
36237a2568 cp: fix cp throwing error when dest is symlink and options backup and --rem is given 2024-07-26 00:49:34 +02:00
Krysztal Huang
4bca4898f4 uucore: Move tests for Teletypeto tty.rs 2024-07-26 00:49:03 +02:00
Krysztal Huang
58d0fb6fb2 uucore: Split tty from proc_info
And renamed `TerminalType` to `Teletype` for better naming because of Terminal contains graphic terminal but the current implementation only support `Teletype`.
2024-07-26 00:49:03 +02:00
Sylvestre Ledru
12eacd1cf2
Merge pull request #6497 from cakebaker/cargo_cfg_fuzzing
Cargo.toml: allow "fuzzing" as `cfg` condition name
2024-07-26 00:48:18 +02:00
Sylvestre Ledru
eaba6bf977
Merge pull request #6592 from cakebaker/clippy_fix_warnings
clippy: fix warnings introduced by Rust 1.80
2024-07-26 00:45:04 +02:00
Daniel Hofstetter
587efd1d4b clippy: fix warnings introduced by Rust 1.80 2024-07-25 16:34:02 +02:00
Daniel Hofstetter
ef68d9778f seq: allow "fuzzing" as cfg condition name
in Cargo.toml
2024-07-23 15:58:57 +02:00
Daniel Hofstetter
79d7158aac
Merge pull request #6584 from howjmay/checksum-no-check
hashsum: Return err when only --strict or --quiet is given
2024-07-23 15:20:35 +02:00
sreehari prasad
5baf382f7e
mv: use read_to_string and write when testing inter-partition copying (#6583)
* mv: inter partition copying test code cleanup

* mv: inter partition copying use of read_to_string and write

* Update tests/by-util/test_mv.rs

Co-authored-by: Ben Wiederhake <BenWiederhake.GitHub@gmx.de>

---------

Co-authored-by: Ben Wiederhake <BenWiederhake.GitHub@gmx.de>
2024-07-19 19:03:20 +02:00
Yang Hau
e5d765f46c hashsum: Return err when only --strict or --quiet is given 2024-07-19 16:05:30 +08:00
Daniel Hofstetter
868569496e
Merge pull request #6581 from BenWiederhake/dev-nightly-clippy
Fix nightly clippy
2024-07-18 17:53:28 +02:00
Ben Wiederhake
584d91f8b5 test: fix indentation that fails clippy nightly
See also https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation
2024-07-18 15:59:37 +02:00
Ben Wiederhake
c8d10ea69e clippy: simplify code according to nightly 'manual_unwrap_or_default' lint
https://rust-lang.github.io/rust-clippy/master/index.html#/manual_unwrap_or_default
2024-07-18 15:59:37 +02:00
Ben Wiederhake
42b3baf32f clippy: simplify code according to nightly 'needless_borrows_for_generic_args' lint
https://rust-lang.github.io/rust-clippy/master/index.html#/needless_borrows_for_generic_args
2024-07-18 15:59:36 +02:00
Ben Wiederhake
76af976e48 uucore: add missing import
No idea why this is only caught by clippy nightly.
See also https://github.com/uutils/coreutils/pull/6483
2024-07-18 15:59:36 +02:00
Ben Wiederhake
471f047a64 clippy: simplify code according to nightly 'byte_char_slices' lint
https://rust-lang.github.io/rust-clippy/master/index.html#/byte_char_slices
2024-07-18 15:59:36 +02:00
mhead
84f8b7a98b proper error message when inter-partition copying fails with test 2024-07-18 13:11:34 +02:00
mhead
ff12e6ee87 mv: gnu test case to-symlink fix 2024-07-18 13:11:34 +02:00
Dorian Péron
9ab7fa9806 tr: accept non utf8 arguments for sets 2024-07-18 13:00:32 +02:00
Dorian Péron
e7f965d6a8 cut: move os_string_as_bytes utility to uucore 2024-07-18 13:00:32 +02:00
Justin Tracey
5882304dcd
Fix Android CI (#6580)
* android CI: get termux user from emulator

* stat: fix android builds
2024-07-18 09:45:00 +02:00
Daniel Hofstetter
1659422b90
Merge pull request #6579 from uutils/renovate/thiserror-1.x-lockfile
chore(deps): update rust crate thiserror to v1.0.63
2024-07-18 07:58:38 +02:00
renovate[bot]
a5daed96ff
chore(deps): update rust crate thiserror to v1.0.63 2024-07-17 20:03:34 +00:00
Daniel Hofstetter
6c0bf35640
Merge pull request #6568 from uutils/renovate/redox_syscall-0.x-lockfile
chore(deps): update rust crate redox_syscall to v0.5.3
2024-07-16 07:43:16 +02:00
Sylvestre Ledru
7470f657ad
Merge pull request #6571 from BenWiederhake/dev-fix-mac-ci
uptime: relax error message due to different errno on MacOS
2024-07-15 22:15:37 +02:00
Ben Wiederhake
6818bbe5d7 uptime: relax error message due to different errno on MacOS
Fixes #6569.
2024-07-15 21:49:42 +02:00
Dorian Péron
128335a24b tr: Raise error if set2 is too big on complemented class 2024-07-15 17:55:40 +02:00
renovate[bot]
b7bb40d240
chore(deps): update rust crate redox_syscall to v0.5.3 2024-07-15 15:40:15 +00:00
Daniel Hofstetter
ee75d5a5e1
Merge pull request #6567 from uutils/renovate/blake3-1.x-lockfile
chore(deps): update rust crate blake3 to v1.5.3
2024-07-15 09:24:05 +02:00
renovate[bot]
c4c716914a
chore(deps): update rust crate blake3 to v1.5.3 2024-07-15 06:56:53 +00:00
kf zheng
a77848fb83
printf: Fix extra padding (#6548) 2024-07-13 10:19:01 +02:00
Daniel Hofstetter
f175a0a795
Merge pull request #6565 from uutils/renovate/blake3-1.x-lockfile
chore(deps): update rust crate blake3 to v1.5.2
2024-07-13 07:01:59 +02:00
renovate[bot]
2bceb35f40
chore(deps): update rust crate blake3 to v1.5.2 2024-07-12 19:16:33 +00:00
Daniel Hofstetter
47d1beef92
Merge pull request #6553 from uutils/renovate/reactivecircus-android-emulator-runner-2.x
chore(deps): update reactivecircus/android-emulator-runner action to v2.32.0
2024-07-12 09:32:40 +02:00
Daniel Hofstetter
3ede90de1b
Merge pull request #6562 from uutils/renovate/thiserror-1.x-lockfile
chore(deps): update rust crate thiserror to v1.0.62
2024-07-12 08:58:06 +02:00