Commit graph

604 commits

Author SHA1 Message Date
Sylvestre Ledru
f8d7bebed3 ignore some cognitive_complexity for now 2023-05-06 14:50:55 +02:00
Daniel Hofstetter
616a166e36
Merge pull request #4820 from sylvestre/thru-dangling-2
cp: fix cp -f f loop when loop is a symlink loop
2023-05-04 08:20:57 +02:00
Sylvestre Ledru
6547bec2ef uucore/detect_symlink_loop: add a function to detect symlink loops 2023-05-03 19:54:33 +02:00
Sylvestre Ledru
aae3f2f99c Ride along: fix some trivial clippy warnings 2023-05-02 23:22:39 +02:00
John Shin
898628fa3a core: fix typo in update control 2023-05-02 13:54:31 -07:00
John Shin
3b8f3d04f4 core: remove unnecessary if statement in update control 2023-05-02 12:49:49 -07:00
John Shin
460d346069 core: remove '' case for the update argument 2023-05-02 12:42:39 -07:00
John Shin
06d4603bea core: fix typo in update control 2023-05-02 12:40:04 -07:00
John Shin
36e93e12d6 core: add header notice for update control 2023-05-02 12:38:12 -07:00
John Shin
60c0b661c3 core: fix typo in update control 2023-05-01 17:22:08 -07:00
John Shin
c5327cf0a0 core: add docs for update control 2023-05-01 03:48:37 -07:00
John Shin
2f8df653c5 core mv cp: update help doc for 'update' functionality 2023-04-30 18:53:11 -07:00
John Shin
ecde4b6aa3 core: introduce update controller for mv and cp 2023-04-27 04:47:59 -07:00
Dan Gohman
f187a5ccff Fix a warning in upstream code on Rust nightly.
Rust nightly recently [started] issuing the following warning when
compiling coreutils:

[started]: https://github.com/rust-lang/rust/pull/109944

```
warning: getting the inner pointer of a temporary `CString`
   --> src/uucore/src/lib/features/entries.rs:324:67
    |
324 |                         let data = $fnam(CString::new(k).unwrap().as_ptr());
    |                                          ------------------------ ^^^^^^ this pointer will be invalid
    |                                          |
    |                                          this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
...
340 | f!(getpwnam, getpwuid, uid_t, Passwd);
    | ------------------------------------- in this macro invocation
    |
    = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
    = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
    = note: `#[warn(temporary_cstring_as_ptr)]` on by default
    = note: this warning originates in the macro `f` (in Nightly builds, run with -Z macro-backtrace for more info)
```

There doesn't seem to be an actual problem in this case, as the pointer is
only used within the statement.
2023-04-24 14:31:05 -07:00
renovate[bot]
790958e4f3
fix(deps): update rust crate libc to 0.2.142 2023-04-20 17:09:10 +00:00
renovate[bot]
54178d491c
fix(deps): update rust crate dunce to 1.0.4 2023-04-19 16:14:17 +00:00
Daniel Hofstetter
dd3c0f7fe9
Merge pull request #4729 from spineki/b2sum-missing-l-option
B2sum: add -l/--length option
2023-04-13 09:57:55 +02:00
Marras Antoine
ae1113d7dc b2sum: add support to -l option 2023-04-10 18:31:18 +02:00
Daniel Hofstetter
4355fb7f78 Remove some unnecessary "extern crate" statements 2023-04-09 16:12:45 +02:00
Daniel Hofstetter
dfea103bc4 uucore: remove commented out imports 2023-04-09 14:53:15 +02:00
renovate[bot]
120a5f6d76
fix(deps): update rust crate libc to 0.2.141 2023-04-04 10:22:35 +00:00
Sylvestre Ledru
3247e1b5e1
Merge pull request #4639 from sylvestre/version
0.0.17 => 0.0.18
2023-04-02 11:31:24 +02:00
Daniel Hofstetter
5d0f0144c1
Merge pull request #4691 from uutils/renovate/windows-sys-0.x
fix(deps): update rust crate windows-sys to 0.45.0
2023-03-31 08:09:33 +02:00
Daniel Hofstetter
4a82d4808f
Merge pull request #4689 from uutils/renovate/data-encoding-2.x
fix(deps): update rust crate data-encoding to 2.3
2023-03-30 16:06:49 +02:00
renovate[bot]
ce6bacd87a
fix(deps): update rust crate windows-sys to 0.45.0 2023-03-30 13:44:57 +00:00
renovate[bot]
2945d6b6b9
fix(deps): update rust crate wild to 2.1 2023-03-30 06:11:01 +00:00
renovate[bot]
4a89f4ab96
fix(deps): update rust crate data-encoding to 2.3 2023-03-30 05:59:08 +00:00
Sylvestre Ledru
af0a263191 0.0.17 => 0.0.18 2023-03-29 08:11:25 +02:00
Sylvestre Ledru
9d075c65c4
Merge pull request #4653 from uutils/renovate/libc-0.x
fix(deps): update rust crate libc to 0.2.140
2023-03-29 07:53:21 +02:00
Daniel Hofstetter
0562c508ed
Merge pull request #4640 from uutils/renovate/glob-0.x
fix(deps): update rust crate glob to 0.3.1
2023-03-28 14:48:09 +02:00
Sylvestre Ledru
59b03d2c9e
Merge pull request #4647 from kamilogorek/if-not-else-lint
lint: Enable clippy::if_not_else and fix all lint issues
2023-03-28 13:25:31 +02:00
renovate[bot]
915c183ff8
fix(deps): update rust crate libc to 0.2.140 2023-03-28 06:02:04 +00:00
Sylvestre Ledru
ab859b8b58
Merge pull request #4652 from uutils/renovate/itertools-0.x
fix(deps): update rust crate itertools to 0.10.5
2023-03-28 07:58:06 +02:00
renovate[bot]
f223629382
fix(deps): update rust crate itertools to 0.10.5 2023-03-27 19:24:30 +00:00
renovate[bot]
bf228385e8
fix(deps): update rust crate glob to 0.3.1 2023-03-27 05:36:00 +00:00
renovate[bot]
515bd8f642
fix(deps): update rust crate dns-lookup to 1.0.8 2023-03-27 05:32:38 +00:00
Kamil Ogórek
68e90eacbb lint: Fix all issues in preparation for enabling clippy::if_not_else 2023-03-26 22:23:50 +02:00
Tom D
e4408f3759 Refactor signal handling in yes, tee, and timeout
Yes, using libc while using nix was a bit redundant.
Upon investigation, duplicated code was found and moved to uucore.
2023-03-26 11:10:40 +02:00
Sylvestre Ledru
8e1082458f
Merge pull request #4393 from cakebaker/uucore_indent_usage_info
uucore: indent multiline usage info
2023-03-24 23:13:11 +01:00
SSJDeathSpawn
4f88356035
refactor: simplification and name change 2023-03-21 18:52:54 +05:30
SSJDeathSpawn
6699eaad6c
Added condition to ensure name of utility appears 2023-03-21 18:19:17 +05:30
Benjamin Bara
e982d57819 chmod: fix GNU test 'chmod/usage' 2023-03-16 21:25:26 +01:00
Terts Diepraam
320929d83d
Merge branch 'main' into issue-4176-fix-timeout 2023-03-12 13:35:27 +01:00
papparapa
e5b6f63305
parser: fix index out of bounds error (#4484)
+ revert 1bc9980 to use files in workspace
2023-03-12 11:07:59 +01:00
Miles Liu
f406b56f4a
timeout: fix subprocess is never terminated 2023-03-10 18:08:54 +08:00
Daniel Hofstetter
b35c415578 uucore: indent multiline usage info 2023-03-05 21:38:21 +01:00
Terts Diepraam
3554565c82
Merge pull request #4356 from howjmay/cksum-a
cksum: implement -a
2023-02-23 12:18:21 +01:00
Sylvestre Ledru
7da22b3ae2
Merge pull request #4405 from bbara/utmpx-time
utmpx: arch/os-independent timeval handling
2023-02-22 21:26:10 +01:00
Benjamin Bara
dd216ee23e utmpx: cast timeval fields to i64 2023-02-22 18:50:08 +01:00
Yang Hau
9322580967 Add checksum algorithm abstractions 2023-02-21 21:14:58 +08:00