1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-08-02 05:57:46 +00:00
Commit graph

15884 commits

Author SHA1 Message Date
Daniel Hofstetter
c3fea933e1 ls: remove duplicate code 2025-05-14 17:00:00 +02:00
Jeremy Smart
64be4369b3
change variable name 2025-05-13 19:21:04 -04:00
Sylvestre Ledru
8866ec3927
Merge pull request #7924 from cakebaker/split_reduce_duplication_in_test
split: use delegation to avoid code duplication in test
2025-05-12 12:02:10 +02:00
Daniel Hofstetter
0c53409857 split: delegate to avoid code duplication in test 2025-05-12 10:55:50 +02:00
Daniel Hofstetter
ad9a87118c split: merge imports in test 2025-05-12 10:52:13 +02:00
Sylvestre Ledru
402907ed6e
Merge pull request #7922 from cakebaker/bump_tempfile
Bump `tempfile` & fix deprecation warning
2025-05-12 08:37:14 +02:00
Daniel Hofstetter
a6d9bfbaa0 mktemp: use keep instead of deprecated into_path 2025-05-12 07:43:26 +02:00
Daniel Hofstetter
04164596d1 Bump tempfile from 3.19.1 to 3.20.0 2025-05-12 07:37:49 +02:00
Jeremy Smart
c1d2362f1d
fix windows test 2025-05-11 20:18:13 -04:00
Jeremy Smart
67acfbcbf3
hashsum: don't exit early on io errors 2025-05-11 19:10:08 -04:00
Alexander Shirokov
a73c0ea290 shred: improve write logic to support data alignment
This commit improves the reliability of the writing logic and removes
implicit dependencies between the preferred I/O size and the block size.

For example, in earlier versions, using BLOCK_SIZE != N * IO_SIZE could
lead to overflows due to alignment with values larger than the buffer
size.
2025-05-11 23:36:53 +02:00
Alexander Shirokov
745d2add08 shred: add 4K data alignment
This commit allows aligning output data by 4K to better match GNU shred.

The 4K block size is configured as a constant because it provides a
widely used value in the simplest way. However, there is a chance that
some systems may use a different value. So far, I haven't encountered
anything other than 4K, I decided not to overcomplicate the approach for
now.
2025-05-11 23:36:53 +02:00
Sylvestre Ledru
05c161cbb5
Merge pull request #7914 from cakebaker/id_remove_to_string_calls
id: remove unnecessary `to_string` calls
2025-05-11 14:28:57 +02:00
Daniel Hofstetter
f4b1a97c0a id: remove unnecessary to_string calls 2025-05-11 13:35:43 +02:00
Daniel Hofstetter
f4b16176a0
Merge pull request #7909 from sylvestre/use-selinux-func
selinux: use the uucore::selinux::is_selinux_enabled() function
2025-05-11 13:13:24 +02:00
Sylvestre Ledru
545fab9544 selinux: add the desc of the module 2025-05-11 09:36:18 +02:00
Sylvestre Ledru
6091d0b62b selinux: use the uucore::selinux::is_selinux_enabled() function 2025-05-11 09:36:15 +02:00
Sylvestre Ledru
7cd68761e2
Merge pull request #7911 from uutils/renovate/clap-4.x-lockfile
chore(deps): update rust crate clap to v4.5.38
2025-05-11 09:05:36 +02:00
renovate[bot]
fa7f2bf763
chore(deps): update rust crate clap to v4.5.38 2025-05-11 03:20:24 +00:00
Sylvestre Ledru
45b0c39ed7
Merge pull request #7892 from cakebaker/uptime_refactor_uumain
uptime: refactor `uumain`
2025-05-09 22:11:44 +02:00
Daniel Hofstetter
99be8f8987
Merge pull request #7905 from uutils/renovate/signal-hook-0.x-lockfile
chore(deps): update rust crate signal-hook to v0.3.18
2025-05-09 14:23:09 +02:00
renovate[bot]
f0489d903a
chore(deps): update rust crate signal-hook to v0.3.18 2025-05-09 11:37:12 +00:00
Daniel Hofstetter
7c865b29a1
Merge pull request #7898 from sylvestre/selinux-err
selinux: get closer to the GNU error msgs
2025-05-09 13:35:29 +02:00
Daniel Hofstetter
7d24aa8caa
Merge pull request #7899 from sylvestre/selinux-build
gnu: fix the build with selinux
2025-05-09 11:31:10 +02:00
Jeremy Smart
a752f73476
csplit: don't add a newline if the file doesn't end with one (#7901)
* csplit: don't add a newline if the file doesn't end with one

* refactor test

* refactor
2025-05-09 09:15:54 +02:00
Sylvestre Ledru
b778fa7baf gnu: fix the build with selinux 2025-05-07 23:02:45 +02:00
Sylvestre Ledru
fde3733bf5 selinux: improve the error display 2025-05-07 22:58:52 +02:00
Sylvestre Ledru
832dd495bf selinux: adjust more error messages 2025-05-07 22:58:46 +02:00
Sylvestre Ledru
2e34d94e17 selinux: upstream expects lower case 2025-05-07 22:58:39 +02:00
Daniel Hofstetter
bcc02e9cea
Merge pull request #7897 from aaron-ang/ptx-panic
ptx: use char count instead of byte index to handle utf-8 characters
2025-05-07 15:52:13 +02:00
Aaron Ang
1cfb19a936 ptx: use char count instead of byte index to handle utf-8 characters 2025-05-06 23:41:02 -07:00
Daniel Hofstetter
de32281235
Merge pull request #7893 from uutils/renovate/clap_complete-4.x-lockfile
chore(deps): update rust crate clap_complete to v4.5.50
2025-05-07 07:12:45 +02:00
Francisco Torres
42fd19cd77
README.md: fix typo (Gnu -> GNU) (#7896) 2025-05-07 07:04:33 +02:00
renovate[bot]
1a60c2c6c4
chore(deps): update rust crate clap_complete to v4.5.50 2025-05-06 19:09:04 +00:00
Daniel Hofstetter
26e175757d uptime: extract uptime_since fn 2025-05-06 17:05:12 +02:00
Daniel Hofstetter
c6b12cfb96 uptime: remove path arg under Windows 2025-05-06 16:47:52 +02:00
Daniel Hofstetter
b78f78bedf uptime: use clap to handle too many path args 2025-05-06 16:05:23 +02:00
Sylvestre Ledru
cd93931f82
Merge pull request #7891 from cakebaker/uptime_refactoring
uptime: some small refactorings
2025-05-06 11:48:04 +02:00
Daniel Hofstetter
157f653780 uptime: merge two imports 2025-05-06 10:58:55 +02:00
Daniel Hofstetter
876f941e8e uptime: add two empty lines 2025-05-06 10:56:56 +02:00
Daniel Hofstetter
f6d19fab79 uptime: use same code structure in two blocks 2025-05-06 10:55:09 +02:00
Daniel Hofstetter
52a2b664e2 uptime: don't return Result from print_nusers 2025-05-06 10:47:10 +02:00
Daniel Hofstetter
c981767af4
Merge pull request #7878 from sylvestre/selinux-cp
cp: improve the selinux support
2025-05-06 09:27:59 +02:00
Sylvestre Ledru
5148ba12d6 set_selinux_security_context: also display the error from the crate
+ fix comments from review
2025-05-06 08:52:27 +02:00
Sylvestre Ledru
b3a2b74ca1 cp/selinx: improve the support of --preserve-context and simplify the code.
+ Add test for the selinux changes with context SLASHLogin
Improves the coverage of tests/cp/cp-a-selinux.sh
2025-05-06 08:52:27 +02:00
SLASHLogin
74e72f527b cp: add -Z flag & add --context=[CTX] flag 2025-05-06 08:52:27 +02:00
Sylvestre Ledru
e7fdd3dfba selinux: add support in cp 2025-05-06 08:52:27 +02:00
Daniel Hofstetter
55411721a8
Merge pull request #7889 from uutils/renovate/clap_complete-4.x-lockfile
chore(deps): update rust crate clap_complete to v4.5.49
2025-05-06 07:14:57 +02:00
renovate[bot]
179362d431
chore(deps): update rust crate clap_complete to v4.5.49 2025-05-05 22:12:05 +00:00
Sylvestre Ledru
31e57502a3
Merge pull request #7888 from tdulcet/svg
Switched to SVG graphs
2025-05-05 19:53:35 +02:00