Terts Diepraam
aafdf10dc8
CI: test uucore with coreutils to run it with the proper features
2024-01-10 14:03:53 +01:00
Daniel Hofstetter
4754e071d4
deny.toml: update comment for windows-sys
2024-01-10 10:48:50 +01:00
Daniel Hofstetter
d29adfcb09
Bump mio from 0.8.6 to 0.8.10
2024-01-10 10:47:20 +01:00
Daniel Hofstetter
0fe5f39b74
Bump console from 0.15.7 to 0.15.8
2024-01-10 10:46:03 +01:00
D9nni
96271ffa3c
cksum: added tests for --raw with each algorithm, not working for crc, sysv, bsd
2024-01-09 23:12:40 +02:00
Daniel Hofstetter
f400a07dc6
pathchk: remove useless comments
2024-01-09 15:19:22 +01:00
Daniel Hofstetter
49154669a6
pathchk: simplify and rename test
2024-01-09 15:17:15 +01:00
Daniel Hofstetter
cd9863dd29
Merge pull request #5808 from tertsdiepraam/printf-octal-prefix
...
`printf`: use 0 instead of 0o as octal prefix
2024-01-09 13:38:19 +01:00
Terts Diepraam
9858fef20e
printf: use 0 instead of 0o as octal prefix
2024-01-09 10:34:08 +01:00
Samuel Tardieu
5dfeca9ff2
format: %c prints the first character of a string
2024-01-09 00:13:54 +01:00
Sylvestre Ledru
7dc4afb5cc
Merge pull request #5814 from cakebaker/android
...
ci: set -no-window in Android workflow
2024-01-08 19:50:55 +01:00
Sylvestre Ledru
294a0abb9c
Merge pull request #5812 from cakebaker/ln_fix_unused_import_on_android
...
ln: fix "unused import" warning on Android
2024-01-08 18:05:10 +01:00
Sylvestre Ledru
3552b4af61
Merge pull request #5813 from cakebaker/head_disable_tests_on_android
...
head: disable some tests on Android
2024-01-08 18:01:51 +01:00
Daniel Hofstetter
e29afdc0df
head: disable some tests on Android
2024-01-08 17:29:34 +01:00
Daniel Hofstetter
62dffc3250
ln: fix "unused import" warning on Android
2024-01-08 17:17:43 +01:00
Daniel Hofstetter
833c1a0d3f
ci: set -no-window in Android workflow
2024-01-08 16:19:43 +01:00
D9nni
28b5224725
cksum: fixed test for --raw on single file
2024-01-08 15:50:25 +02:00
Daniel Hofstetter
1c6bf6991c
nl: don't exit if input is directory
2024-01-08 11:01:07 +01:00
Sylvestre Ledru
d72343bc64
Merge branch 'main' into cksum
2024-01-08 09:02:11 +01:00
Daniel Hofstetter
8e83b347c6
Merge pull request #5804 from Ato2207/cksum_error
...
Made cksum return an error if the algorithm blake2b is used on a directory.
2024-01-08 08:38:48 +01:00
D9nni
f03ef79bc8
cksum: added tests for --raw and fixed fmt whitespace error
2024-01-08 08:51:06 +02:00
Atomei Alexandru Constantin
0bfd4bbdf7
Added test to validate that it now generates the error for an arbitrary directory
2024-01-08 00:08:24 +02:00
Atomei Alexandru Constantin
288ad97878
Made cksum to return an error if the algorithm blake2b is used on a directory
2024-01-07 23:39:33 +02:00
D9nni
8c1fc8b287
Added --raw argument, with error for multiple files
2024-01-07 21:43:31 +02:00
Daniel Hofstetter
f1499d0e79
Merge pull request #5802 from uutils/renovate/libc-0.x
...
chore(deps): update rust crate libc to 0.2.152
2024-01-07 17:29:54 +01:00
renovate[bot]
f612546ff7
chore(deps): update rust crate libc to 0.2.152
2024-01-07 15:21:27 +00:00
Daniel Hofstetter
7b34e3e4bb
Merge pull request #5800 from sylvestre/remove-wa
...
Remove the tests/cp/link-heap.sh workaround
2024-01-07 13:14:07 +01:00
Sylvestre Ledru
724305e64f
Remove the tests/cp/link-heap.sh workaround
...
No longer needed since github.com/uutils/coreutils/pull/5789 landed
2024-01-06 23:33:32 +01:00
Sylvestre Ledru
a60c3420d5
Merge pull request #5789 from samueltardieu/issue-5766
...
Fix seq output
2024-01-06 23:33:02 +01:00
Sylvestre Ledru
b309d64e78
Merge branch 'main' into issue-5766
2024-01-06 22:55:54 +01:00
Kostiantyn Hryshchuk
c867d6bfb1
shred: implemented "--remove" arg ( #5790 )
2024-01-06 22:50:21 +01:00
Sylvestre Ledru
247f2e55bd
seq: adjust some error messages. GNU's are better ( #5798 )
...
* seq: adjust some error messages. GNU's are better
tested by tests/seq/seq.pl
* uucore: remove todo
---------
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2024-01-06 16:54:29 +01:00
Daniel Hofstetter
d158f1a396
Merge pull request #5799 from ffontaine/main
...
uucore: add support for sparc64
2024-01-06 14:29:46 +01:00
Fabrice Fontaine
9f4330f94c
uucore: add support for sparc64
...
Add support for sparc64 in uucore to avoid the following build failure
with nushell:
error[E0308]: mismatched types
--> /home/autobuild/autobuild/instance-7/output-1/build/nushell-0.85.0/VENDOR/uucore/src/lib/features/fs.rs:121:16
|
111 | pub fn number_of_links(&self) -> u64 {
| --- expected `u64` because of return type
...
121 | return self.0.st_nlink;
| ^^^^^^^^^^^^^^^ expected `u64`, found `u32`
|
help: you can convert a `u32` to a `u64`
|
121 | return self.0.st_nlink.into();
| +++++++
For more information about this error, try `rustc --explain E0308`.
error: could not compile `uucore` (lib) due to previous error
Fixes:
- http://autobuild.buildroot.org/results/f9f0287a8e39c65895014ca513ed25071f020add
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2024-01-06 10:26:54 +01:00
Daniel Hofstetter
a44845d5f7
Merge pull request #5796 from michel-slm/add-homepage-and-repo
...
uuhelp_parser: add links to homepage and repo
2024-01-06 07:10:30 +01:00
Michel Lind
5de030f119
uuhelp_parser: add links to homepage and repo
...
When viewing the crate right now, apart from via looking at the dependencies
it's hard to find the associated project and repository.
Add the missing info.
Signed-off-by: Michel Lind <salimma@fedoraproject.org>
2024-01-05 22:21:28 -06:00
Daniel Hofstetter
e13f0d80ee
Merge pull request #5778 from RenjiSann/main
...
ls: Support QUOTING_STYLE environment variable
2024-01-05 15:55:23 +01:00
Samuel Tardieu
32f0256d7d
uucore/num_format: properly display 10ᵖ where p is the precision
...
`seq --format %.2g 10 10` would display `1` because the precision would
not allow room for the decimal point, and the `0` in `10` would be
trimmed as an insignificant trailing `0`.
This has been fixed by only trimming trailing `0` in the presence of a
decimal point.
2024-01-05 15:40:20 +01:00
Samuel Tardieu
f5179290a6
uucore/num_format: replace saturating_sub by regular subtraction
...
Using `saturating_sub()` before converting to `usize` gives a wrong
feeling of security as it looks like it ensures that the value will
never go negative. However, since it is applied to `i32`, it can, and
converting it to `usize` would go horribly wrong anyway.
By following the code flow, `exponent` cannot be greater than
`precision`, or the `else` block would not have been taken. A plain
subtraction will give the same result and will at least panic in debug
mode.
2024-01-05 15:04:12 +01:00
Samuel Tardieu
4c5326ffa3
uucore/num_format: the default precision for %g is 6
2024-01-05 15:00:12 +01:00
Daniel Hofstetter
5950777561
Merge pull request #5780 from sylvestre/terminator
...
cp/mv: manage with trailing slash in target
2024-01-05 14:24:08 +01:00
Dorian Péron
4372908e84
fix: cargo fmt + fix spelling mistake
2024-01-05 13:55:47 +01:00
Sylvestre Ledru
e64a0b4a26
Various fixes
...
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2024-01-05 12:56:27 +01:00
Sylvestre Ledru
aabf5fa577
cp: manages target with trailing '/'
2024-01-05 12:56:27 +01:00
Sylvestre Ledru
cb27b9c9c3
path_ends_with_terminator: rustdoc + unittest
2024-01-05 12:56:27 +01:00
Sylvestre Ledru
108dc4a0cd
Move path_ends_with_terminator from mv into uucore
2024-01-05 12:56:27 +01:00
Sylvestre Ledru
4c698d58e0
mv: support the case mkdir a && mv a e/
2024-01-05 12:56:24 +01:00
Sylvestre Ledru
e341759dfe
Merge pull request #5786 from samueltardieu/style-fixes
...
uucore: fix style in tests
2024-01-05 12:39:48 +01:00
Sylvestre Ledru
b61e859467
Merge pull request #5787 from samueltardieu/fuzz-fix-fd-leak
...
fuzz: fix file descriptor leak
2024-01-05 12:38:26 +01:00
Samuel Tardieu
4343ba6695
fuzz: fix file descriptor leak
2024-01-05 11:04:16 +01:00