Commit graph

13077 commits

Author SHA1 Message Date
Sylvestre Ledru
0882eea07c cksum/hashsum: factor the error structure and use it more 2024-05-29 09:08:04 +02:00
Sylvestre Ledru
dbe7a20e08 cksum/hashsum: refactor the common code.
Summary of the change:
* Move the common code into checksum
* Create a structure HashAlgorithm to handle the algorithm (instead of the 3 variables)
* Use the same function for cksum & hashsum for --check (perform_checksum_validation)
* Use the same for function for the hash generation (digest_reader)
* Add unit tests
* Add integration tests
* Fix some incorrect tests
2024-05-29 09:08:00 +02:00
Daniel Hofstetter
3523268936
Merge pull request #6438 from phedders/main
src/uucore/src/lib/features/fsext.rs: Add magic for bcachefs
2024-05-28 14:53:28 +02:00
Paul Hedderly
4824033385 src/uucore/src/lib/features/fsext.rs: Add magic for bcachefs
Enables stat to recogise a BcacheFS filesystem - for example:

  $ ./target/debug/stat -f /
  File: "/"
    ID: 64b40636928f3ee7 Namelen: 512     Type: bcachefs
  Block size: 512        Fundamental block size: 512
  Blocks: Total: 2044464374 Free: 295830135  Available: 291278902
  Inodes: Total: 2375400624 Free: 2366641080
2024-05-28 12:23:21 +01:00
Sylvestre Ledru
8adeb902ce
Merge pull request #6437 from cakebaker/df_fix_incorrect_test
df: fix incorrect test & add another test
2024-05-27 13:12:46 +02:00
Daniel Hofstetter
8d3181fed5 df: fix incorrect test & add another test 2024-05-27 11:53:12 +02:00
Daniel Hofstetter
22588a8bfb
Merge pull request #6433 from Qelxiros/df/size_padding
df: fix size column padding
2024-05-27 11:04:03 +02:00
Daniel Hofstetter
2769a5c82c
Merge pull request #6434 from uutils/renovate/proc-macro2-1.x-lockfile
fix(deps): update rust crate proc-macro2 to v1.0.84
2024-05-26 10:31:44 +02:00
renovate[bot]
5a357c61b7
fix(deps): update rust crate proc-macro2 to v1.0.84 2024-05-26 01:22:57 +00:00
Jeremy Smart
3bc4df4075
df: fix size column padding 2024-05-25 16:08:23 -04:00
Daniel Hofstetter
6adf07e934
Merge pull request #6430 from sylvestre/clippy-tests
tests: fix some clippy warnings
2024-05-25 13:39:57 +02:00
Sylvestre Ledru
09e53f3d2d tests: fix some clippy warnings 2024-05-25 09:06:16 +02:00
Daniel Hofstetter
5825c2b1b5
Merge pull request #6428 from uutils/renovate/reactivecircus-android-emulator-runner-2.x
chore(deps): update reactivecircus/android-emulator-runner action to v2.31.0
2024-05-25 08:04:45 +02:00
renovate[bot]
86de66f3e2
chore(deps): update reactivecircus/android-emulator-runner action to v2.31.0 2024-05-24 15:13:54 +00:00
Sylvestre Ledru
4534f359f2
Merge pull request #6427 from cakebaker/deny_toml_allow_bsl_1_0_as_license
deny.toml: allow BSL-1.0 as license
2024-05-24 10:32:52 +02:00
Daniel Hofstetter
05decd97ec deny.toml: allow BSL-1.0 as license 2024-05-24 09:48:36 +02:00
Daniel Hofstetter
51e8d100af
Merge pull request #6425 from thesayyn/patch-1
fix: macos-latest is now arm64
2024-05-24 08:59:36 +02:00
Christian von Elm
0d1bde2879 tr: disallow classes besides [:upper:]/[:lower:] in set2 when translating
Fixes issue #6342
2024-05-23 22:06:57 +02:00
Walid
ebcd86df07
env: adds --ignore-signal (#6377)
* env: adds --ignore-signal
This commit implement #6164.

* env: handle STOP signal and fix styling issue

* env: fix encoded bytes

* env: adds SAFETY comment and handle special signals in ignore_signal

* env: fix parsing to have compatible behaviour

* env: remove derive from Options

* env: changed safety comment, handle duplications after parsing and non-unix cfg

* env: adds tests for ignore-signal parsing and invalid and special signals

* env: change signal values to be non-constant

* env: adds testing for signal ignoring

* env: styling and remove unix specific derive

* test_env: add SIGSTOP to cspell workspace wordlist

* env: makes signal handling unix specific

* env: make ignore-signal function invocation unix specific

* test_env: make signal vector use slices ref instead of vec (linter)

* env: makes ignore-signal in options unix specific

* test_env: add unix specific import
2024-05-23 22:01:39 +02:00
Sahin Yort
ebba776695
fix: macos-latest is now arm64 2024-05-23 12:33:10 -07:00
Sylvestre Ledru
e2aa2c7440
Merge pull request #6421 from cakebaker/cargo_toml_enable_mode_feature
Cargo.toml: enable uucore's `mode` feature
2024-05-23 13:55:19 +02:00
Daniel Hofstetter
b6a9ace7d9
Merge pull request #6423 from uutils/renovate/parse_datetime-0.x
chore(deps): update rust crate parse_datetime to 0.6.0
2024-05-21 13:33:16 +02:00
renovate[bot]
84494f753e
chore(deps): update rust crate parse_datetime to 0.6.0 2024-05-21 11:01:00 +00:00
Daniel Hofstetter
14dd223fc7 Cargo.toml: enable uucore's mode feature 2024-05-21 10:07:29 +02:00
Daniel Hofstetter
a816960c33 tests: remove 'target_pointer_width = "128"' 2024-05-20 23:27:53 +02:00
Daniel Hofstetter
64dd78d14a
Merge pull request #6411 from uutils/renovate/libc-0.x-lockfile
fix(deps): update rust crate libc to v0.2.155
2024-05-20 10:19:54 +02:00
renovate[bot]
9dc41f9667
fix(deps): update rust crate libc to v0.2.155 2024-05-20 07:26:10 +00:00
sreehari prasad
f2f4a424de
cp: parent-perm-race gnu fix (#6403) 2024-05-20 08:17:17 +02:00
Daniel Hofstetter
09129a5d23
Merge pull request #6416 from uutils/renovate/proc-macro2-1.x-lockfile
fix(deps): update rust crate proc-macro2 to v1.0.83
2024-05-20 07:13:52 +02:00
renovate[bot]
ae85331188
fix(deps): update rust crate proc-macro2 to v1.0.83 2024-05-20 00:11:59 +00:00
sreehari prasad
3c096ee6ac
util: added umask manipulation (#6404)
Co-authored-by: Terts Diepraam <terts.diepraam@gmail.com>
2024-05-19 21:56:41 +02:00
Sylvestre Ledru
f013d230f8
Merge pull request #6414 from cakebaker/pinky_fix_idle_string
pinky: use UTC if offset can't be determined
2024-05-19 21:53:46 +02:00
Daniel Hofstetter
00b2dc3b56 pinky: use UTC if offset can't be determined 2024-05-19 13:54:16 +02:00
sreehari prasad
2e16cbbd7a
cp: link-deref gnu test fix (#6378)
Co-authored-by: Ben Wiederhake <BenWiederhake.GitHub@gmx.de>
2024-05-19 10:14:29 +02:00
Ben Wiederhake
b718f954e8
Merge pull request #6390 from sylvestre/cksum-check
cksum: implement check (Closes: #5705)
2024-05-18 23:46:58 +02:00
Sylvestre Ledru
fc80c474b4
Merge pull request #6413 from cakebaker/uucore_utmpx_fix_login_time
uucore/utmpx: use UTC if offset can't be resolved
2024-05-18 22:17:38 +02:00
Daniel Hofstetter
90e023a9de uucore/utmpx: use UTC if offset can't be resolved 2024-05-18 16:53:36 +02:00
Sylvestre Ledru
3156ad8298
Merge pull request #6412 from sylvestre/hashsum-fix
hashsum: improve the blake2 --tag export
2024-05-18 16:34:43 +02:00
Sylvestre Ledru
ab2d2488a3 hashsum: simplify the println 2024-05-18 16:16:29 +02:00
Sylvestre Ledru
a9a11f486e hashsum: rename the blake2b algo with --tag + manage the different length 2024-05-18 16:16:26 +02:00
Sylvestre Ledru
7a46ea371f hashsum: rename the variable for something more explicit 2024-05-18 10:06:53 +02:00
Daniel Hofstetter
4e0a256511
Merge pull request #6409 from uutils/renovate/zip-1.x-lockfile
chore(deps): update rust crate zip to v1.3.0
2024-05-18 07:59:20 +02:00
renovate[bot]
2658454cde
chore(deps): update rust crate zip to v1.3.0 2024-05-18 05:20:10 +00:00
Daniel Hofstetter
202f699c83
Merge pull request #6410 from uutils/renovate/thiserror-1.x-lockfile
chore(deps): update rust crate thiserror to v1.0.61
2024-05-18 07:08:55 +02:00
Sylvestre Ledru
514d810371 cksum: improve the blake2b detection algo corner case 2024-05-17 22:09:41 +02:00
Sylvestre Ledru
db58d2b6b5 cksum: when length/bits can't be divided by 8, generate an error 2024-05-17 22:08:53 +02:00
Sylvestre Ledru
1b78102a6b cksum: fails in case of unknown algo 2024-05-17 20:21:14 +02:00
renovate[bot]
bee19e1b57
chore(deps): update rust crate thiserror to v1.0.61 2024-05-17 18:11:27 +00:00
Sylvestre Ledru
aa8147f575
Merge pull request #6408 from cakebaker/downgrade_libc
Downgrade `libc` to `0.2.153`
2024-05-17 20:10:37 +02:00
Sylvestre Ledru
89e96b1755
Merge pull request #6405 from cakebaker/cp_remove_macos_12
cp: remove `target_os = "macos-12"`
2024-05-17 20:09:49 +02:00