Commit graph

13380 commits

Author SHA1 Message Date
Daniel Hofstetter
7fcdf69adc
Merge pull request #6625 from uutils/renovate/serde-monorepo
chore(deps): update rust crate serde to v1.0.205
2024-08-08 07:58:33 +02:00
renovate[bot]
018d2eee20
chore(deps): update rust crate serde to v1.0.205 2024-08-08 05:08:55 +00:00
Sylvestre Ledru
907836816b Add windows arm64 to the CI 2024-08-07 19:47:47 +02:00
Daniel Hofstetter
5c4f9cb637
Merge pull request #6619 from uutils/renovate/rstest-0.x
chore(deps): update rust crate rstest to 0.22.0
2024-08-05 07:57:42 +02:00
renovate[bot]
a1549cedfb
chore(deps): update rust crate rstest to 0.22.0 2024-08-04 19:13:21 +00:00
Daniel Hofstetter
23fd74beb7
Merge pull request #6617 from uutils/renovate/dunce-1.x-lockfile
fix(deps): update rust crate dunce to v1.0.5
2024-08-04 10:17:21 +02:00
renovate[bot]
73f57be69f
fix(deps): update rust crate dunce to v1.0.5 2024-08-04 04:53:27 +00:00
Daniel Hofstetter
79966c8d1b
Merge pull request #6616 from uutils/renovate/rust-ini-0.x-lockfile
chore(deps): update rust crate rust-ini to v0.21.1
2024-08-03 18:38:47 +02:00
renovate[bot]
614d21daec
chore(deps): update rust crate rust-ini to v0.21.1 2024-08-03 16:01:08 +00:00
Daniel Hofstetter
06be3c55f3 Bump tempfile from 3.10.1 to 3.11.0 2024-08-03 08:06:34 +02:00
Daniel Hofstetter
36599091fd
Merge pull request #6611 from uutils/renovate/winapi-util-0.x-lockfile
chore(deps): update rust crate winapi-util to v0.1.9
2024-08-03 06:54:53 +02:00
Daniel Hofstetter
83b4328a79
Merge pull request #6610 from uutils/renovate/regex-1.x-lockfile
chore(deps): update rust crate regex to v1.10.6
2024-08-03 06:50:33 +02:00
renovate[bot]
d61fcc1d93
chore(deps): update rust crate winapi-util to v0.1.9 2024-08-02 22:23:57 +00:00
renovate[bot]
4ffeeef06b
chore(deps): update rust crate regex to v1.10.6 2024-08-02 17:11:22 +00:00
Daniel Hofstetter
1e4bde2c7c
Merge pull request #6608 from uutils/renovate/embarkstudios-cargo-deny-action-2.x
chore(deps): update embarkstudios/cargo-deny-action action to v2
2024-08-02 15:23:44 +02:00
renovate[bot]
63eb76dbc0
chore(deps): update embarkstudios/cargo-deny-action action to v2 2024-08-02 12:55:30 +00:00
Sylvestre Ledru
e33cecd774
Merge pull request #6601 from cakebaker/uucore_use_workspace_dependency
Use `workspace = true` for some dependencies
2024-08-02 10:15:02 +02:00
Sylvestre Ledru
a670f2d1df
Merge pull request #6605 from cakebaker/ci_remove_unused_var
ci: remove unused var from "Code Coverage" job
2024-08-02 10:11:02 +02:00
Daniel Hofstetter
fbf66aa57b ci: remove unused var from Code Coverage job 2024-08-02 09:44:21 +02:00
Daniel Hofstetter
565a36a88b df: use "workspace = true" for tempfile 2024-07-30 15:21:52 +02:00
Daniel Hofstetter
e0640b2e79 Cargo.toml: use "workspace = true" for sha1 2024-07-30 15:19:58 +02:00
Daniel Hofstetter
dafbd4bd6f uucore: use "workspace = true" for dns-lookup 2024-07-30 14:55:32 +02:00
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