Dorian Péron
4ffedcdac6
feat(checksum): get rid of ChecksumResult in get_file_to_check
2024-11-16 22:44:08 +01:00
Dorian Péron
b6c726602f
feat(checksum): get rid of correct_format
at the line level
2024-11-16 22:44:08 +01:00
Dorian Péron
afcf93b3e3
feat(checksum): extract file processing into a separate function
2024-11-16 22:44:08 +01:00
Dorian Péron
df0da55645
feat(checksum): extract line processing into a separate function
2024-11-16 22:44:08 +01:00
Dorian Péron
07b9fb8a20
feat(checksum): group flags under a ChecksumOptions struct
2024-11-16 22:44:08 +01:00
Sylvestre Ledru
9932aec085
prepare version 0.0.28
2024-11-03 20:59:42 +01:00
Etienne Cordonnier
b68eb04b8b
uucore: disable default signal-handlers added by Rust
...
Fixes https://github.com/uutils/coreutils/issues/6759
Test procedure (verifies that a single SIGSEGV stops a program):
```
ecordonnier@lj8k2dq3:~/dev/coreutils$ ./target/release/coreutils sleep 100 &
[1] 4175464
ecordonnier@lj8k2dq3:~/dev/coreutils$ kill -11 $(pidof coreutils)
ecordonnier@lj8k2dq3:~/dev/coreutils$
[1]+ Segmentation fault (core dumped) ./target/release/coreutils sleep 100
```
2024-10-25 16:47:40 +02:00
Dorian Péron
99cddd16f1
uucore(checksum): fix non-utf-8 filename printing
2024-10-24 11:43:52 +02:00
Dorian Péron
8490461d67
uucore(checksum): handle non-utf-8 text in checksum files
2024-10-24 11:43:52 +02:00
Dorian Péron
1c41a12fb5
test(cksum): add test for trailing spaces making an error
2024-10-24 11:43:52 +02:00
Dorian Péron
97b81a6685
uucore(checksum): determine regex from full line, not trimmed
...
The full line will be matched against the selected regex anyway
2024-10-24 11:41:54 +02:00
Dorian Péron
3031874d22
uucore(lib): add u8/OsString conversion utils
2024-10-24 11:41:54 +02:00
Luv-Ray
d5cc3dd8ee
cksum: fix error handling
2024-10-22 20:20:18 +08:00
Daniel Hofstetter
92e67a5a14
Merge pull request #6782 from RenjiSann/checksum-comment
...
cksum/hashsum: Support for commented lines in checksum files
2024-10-18 13:53:34 +02:00
Daniel Hofstetter
91687ebbc1
uucore: allow use of deprecated PanicInfo
2024-10-18 07:36:30 +02:00
Dorian Péron
f542bbca68
uucore(checksum): add support for comment lines in checksum verification
2024-10-16 12:27:49 +02:00
Dorian Péron
2a1558f741
test(quoting_style): Fix tests
2024-10-15 11:11:23 +02:00
Dorian Péron
e292e05f57
ls: Fix quoting for control characters in shell mode
2024-10-15 11:11:23 +02:00
Dorian Péron
3c5a419537
ls: Escape dirname in recursive mode when it has a colon
2024-10-15 11:11:23 +02:00
Andrew Liebenow
32e1c54c78
Fix "coreutils manpage base64" bug
2024-10-05 08:17:10 -05:00
Andrew Liebenow
2c25ae2838
Fix spelling exception comment
2024-09-24 19:56:50 -05:00
Andrew Liebenow
ea7a543bfe
Fix two bugs. Add property testing.
2024-09-24 19:25:29 -05:00
Andrew Liebenow
4f19c0e9ff
Address PR comments. Simplify structure.
2024-09-24 07:49:28 -05:00
Andrew Liebenow
cdebd24733
Finish fast decode/encode by folding in Z85
2024-09-22 08:28:20 -05:00
Andrew Liebenow
ed04f14ba8
basenc: also perform faster, streaming decoding
...
Same as previous changes, just applied to decoding
2024-09-21 04:02:09 -05:00
Andrew Liebenow
846cf06272
basenc: perform faster, streaming encoding
...
Improve the performance, both in memory and time, of the encoding
performed by the basenc (except in --z85 mode), base32, and base64
programs.
These programs now perform encoding in a buffered/streaming manner,
so encoding is not constrained by the amount of available memory.
2024-09-20 14:34:18 -05:00
David Campbell
d338206a62
Rename bytes to hex, allocate String with capacity.
2024-09-28 19:03:53 -04:00
David Campbell
ae01996066
Fix clippy::format_collect.
2024-09-28 19:03:30 -04:00
David Campbell
392344c93a
Fix clippy::cloned_instead_of_copied.
2024-09-24 20:33:08 -04:00
David Campbell
d0e30b2745
Fix clippy::inconsistent_struct_constructor.
2024-09-24 20:33:08 -04:00
David Campbell
cff8cc0e22
Fix clippy::unreadable_literal.
2024-09-19 18:08:51 -04:00
David Campbell
feae52797b
Fix clippy::unnecessary_join.
2024-09-19 18:05:14 -04:00
David Campbell
353eb53367
Fix clippy::uninlined_format_args .
2024-09-19 17:56:27 -04:00
David Campbell
55a3064fa7
Fix obvious clippy warnings.
2024-09-19 14:19:59 -04:00
Daniel Hofstetter
6aadfeaec5
uucore: fix "unused import" warning on redox
2024-09-14 16:14:31 +02:00
sreehari prasad
8a9fb84a8e
mv: gnu test case mv-n compatibility ( #6599 )
...
* uucore: add update control `none-fail`
* uucore: show suggestion when parse errors occurs because of an ambiguous value
* added tests for fail-none and ambiguous parse error
* uucore: ambiguous value code refractor
* cp: no-clobber fail silently and outputs skipped message in debug
* mv: add --debug support
* minor changes
---------
Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
2024-09-14 09:11:17 +02:00
Anirban Halder
7430856575
`mkdir
: added
acl
` permissions inheritance for subdirectories ( #6676 )
...
Mostly for linux for now
2024-09-11 21:35:25 +02:00
Daniel Hofstetter
612ae271d3
uucore: use AsFd instead AsRawFw in pipes API
...
to match changes in the API of nix
2024-08-14 16:54:42 +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
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
Ben Wiederhake
1fcff25edc
uucore: mark comment as rustdoc
2024-07-27 01:29:01 +02:00
Krysztal Huang
4bca4898f4
uucore: Move tests for Teletype
to 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
Daniel Hofstetter
587efd1d4b
clippy: fix warnings introduced by Rust 1.80
2024-07-25 16:34:02 +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
Yang Hau
e5d765f46c
hashsum: Return err when only --strict or --quiet is given
2024-07-19 16:05:30 +08:00