Sylvestre Ledru
7b6a262e9a
Merge pull request #7843 from dan-hipschman/date-test-relative-weekdays
...
date: add tests for relative weekdays
2025-04-25 23:52:12 +02:00
Dan Hipschman
fe93dae612
date: add tests for relative weekdays
2025-04-25 14:09:22 -07:00
Daniel Hofstetter
0ec36bef11
Merge pull request #7838 from zcg00/install_deletes_files
...
install: fixes issue #7795
2025-04-25 15:10:11 +02:00
Daniel Hofstetter
63272820f3
Merge pull request #7839 from sylvestre/bump_parse_datetime
...
update parse_datetime to 0.9.0
2025-04-25 13:44:16 +02:00
Zachary Goff-Hodges
827d0fcee9
install: fixes issue #7795
2025-04-25 03:48:50 -07:00
Sylvestre Ledru
bf747acd30
update parse_datetime
2025-04-25 11:31:08 +02:00
Daniel Hofstetter
c5fba4bfd8
Merge pull request #7831 from sylvestre/selinux-mkfifo
...
mkfifo: implement selinux support
2025-04-25 09:11:50 +02:00
Joseph Jon Booker
7f98d98472
printf: Add indexing to format strings
2025-04-24 22:11:49 -05:00
Sylvestre Ledru
18db15e4e6
Merge pull request #7208 from jtracey/printf-go
...
printf: improve support of printing multi-byte values of characters
2025-04-24 22:02:13 +02:00
Sylvestre Ledru
b7f2815668
Merge pull request #7833 from cakebaker/shred_remove_obsolete_test
...
shred: remove obsolete test
2025-04-24 21:56:19 +02:00
Sylvestre Ledru
4a94a4e1dc
spell: add getfattr in the ignore list
2025-04-24 21:54:29 +02:00
Sylvestre Ledru
8298173554
mkfifo: implement selinux support
...
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
merge
2025-04-24 21:54:12 +02:00
Sylvestre Ledru
c8505d41dc
Merge pull request #7836 from cakebaker/id_fix_7835
...
id: adapt error message to match the one from GNU `id`
2025-04-24 21:50:02 +02:00
Daniel Hofstetter
48c4c82ab3
id: remove unnecessary #[cfg(unix)] in tests
2025-04-24 15:21:11 +02:00
Daniel Hofstetter
2b5391e6eb
id: fix error message & simplify tests
2025-04-24 15:21:11 +02:00
Daniel Hofstetter
e378558996
shred: remove obsolete test
2025-04-24 09:25:11 +02:00
Jeremy Smart
b151e039ae
shred: fix random passes* ( #7830 )
...
* shred: fix random passes, update documentation, add test
* shred: update tests
2025-04-24 09:15:36 +02:00
Dorian Péron
151b196f50
Merge pull request #7828 from cakebaker/mknod_remove_duplicate_test
...
mknod: remove duplicate test
2025-04-24 05:08:07 +02:00
Jeremy Smart
044b33d8cb
Merge pull request #7760 from Qelxiros/7670-tail-hex-formatting
...
tail hex parsing, remove fundu dependency
2025-04-23 18:34:00 +02:00
Sylvestre Ledru
0125bbc2b4
Merge pull request #7825 from cakebaker/mknod_refactor_uumain
...
mknod: refactor `uumain`
2025-04-23 18:29:37 +02:00
Daniel Hofstetter
f91e3215c1
mknod: remove duplicate test
2025-04-23 17:33:58 +02:00
Daniel Hofstetter
be4e6913a5
mknod: cleanup dev handling
2025-04-23 11:49:29 +02:00
Daniel Hofstetter
a3c181dce3
mknod: cleanup mode handling
2025-04-23 11:37:47 +02:00
Daniel Hofstetter
482f882b4c
mknod: rename function _mknod to mknod ( #7824 )
2025-04-23 11:03:37 +02:00
Daniel Hofstetter
67400abd70
Merge pull request #7818 from sylvestre/selinux-mknod
...
mknod: implement selinux support
2025-04-23 09:38:09 +02:00
Sylvestre Ledru
c9babe4e6f
mknod: pass a string instead of matches
2025-04-23 08:37:42 +02:00
Sylvestre Ledru
aebada4cd4
mknod: implement selinux support
...
+ improve the option management a bit
2025-04-23 08:37:42 +02:00
Teemu Pätsi
6ac444a9c6
id: Handle NULL pointer gracefully within cstr2cow
macro ( #7810 )
...
* id: Handle NULL pointer gracefully within `cstr2cow` macro
> getlogin() returns a pointer to a string containing the name of the user logged in on the controlling terminal of the process, or a NULL pointer if this information cannot be determined.
Ref: https://linux.die.net/man/3/getlogin
* id: Remove redundant std::ffi:: prefix from CStr
* id: Add comment for the null check
Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
* id: Remove skip for test that should not segfault anymore
Segfault fixed by 292fb9242342d47412a789f4d0002b811568bd41
---------
Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
2025-04-23 08:26:00 +02:00
Sylvestre Ledru
a4230410c8
Merge pull request #7821 from cakebaker/mknod_remove_windows_code_flags
...
mknod: remove windows-related code & flags
2025-04-22 17:32:10 +02:00
Daniel Hofstetter
9e7f3acbc7
mknod: remove windows-related code & flags
2025-04-22 16:57:26 +02:00
Sylvestre Ledru
1986c965cc
Merge pull request #7782 from drinkcat/seq-perf-more-use-cat
...
Move seq's `fast_inc` to `uucore`, use it in `cat`
2025-04-22 15:54:00 +02:00
Sylvestre Ledru
96b714781a
Merge pull request #7813 from drinkcat/ls-opt-2
...
ls: More performance optimizations
2025-04-22 15:53:36 +02:00
Daniel Hofstetter
0bb8a0a562
Merge pull request #7820 from uutils/sylvestre-patch-5
...
add tests/misc/tee.sh to the list of intermittent issues
2025-04-22 11:42:57 +02:00
Sylvestre Ledru
7cdbc3c1e4
add tests/misc/tee.sh to the list of intermittent issues
2025-04-22 10:11:34 +02:00
Sylvestre Ledru
77c4ba5bea
Merge pull request #7241 from jfinkels/mv-copy-across-filesystems
...
mv: fix moving FIFO to a different filesystem
2025-04-21 23:03:26 +02:00
Sylvestre Ledru
83679a3956
Merge pull request #7790 from drinkcat/num_parser_simplify
...
uucore: num_parser: Operate on slices, instead of iterator
2025-04-21 22:50:05 +02:00
Sylvestre Ledru
aacd6d4779
Merge pull request #7816 from drinkcat/test_ls_more_acl
...
test_ls: Improve acl test
2025-04-21 22:45:44 +02:00
Sylvestre Ledru
c40856fa86
Merge pull request #7817 from uutils/renovate/ctor-0.x-lockfile
...
chore(deps): update rust crate ctor to v0.4.2
2025-04-21 22:45:05 +02:00
renovate[bot]
25b6543459
chore(deps): update rust crate ctor to v0.4.2
2025-04-21 19:42:25 +00:00
Nicolas Boichat
adb23b154f
test_ls: Improve acl test
...
Create a file with some ACL, and another without, and check that `+`
only appears on the file with ACL.
2025-04-21 17:19:06 +02:00
Daniel Hofstetter
9a04845c01
Merge pull request #7811 from drinkcat/test-ls-improve-perm-io-errors
...
test_ls: Improve test_ls_perm_io_errors
2025-04-21 14:09:47 +02:00
Nicolas Boichat
fc6b896c27
ls: Optimize time formatting
...
Instead of recreating the formatter over and over again, keep
it pre-parsed in a variable in TimeStyler class.
Also, avoid calling `now` over and over again, that's also slow.
Improves performance by about 6%.
2025-04-21 12:19:14 +02:00
Nicolas Boichat
b833deb8d1
ls: display_uname/group: Return a reference
...
Cache even numerical strings (numeric_uid_gid) in the HashMap,
this makes very little difference performance wise.
However, this allows us to return a reference to a String instead
of making a clone.
Saves about 2-3% on `ls -lR /var/lib .git` (and `ls -lRn`).
Also, add a note that HashMap might not be the most optimal choice.
2025-04-21 12:19:14 +02:00
Nicolas Boichat
1890467bd7
ls: ListState: Add uid/gid cache to the structure
...
Easier to reason about than the LazyLock/Mutex encapsulated
static variables.
Performance difference is not measurable, but this drops uneeded
Mutex lock/unlock that were seen in samply output.
2025-04-21 12:19:14 +02:00
Nicolas Boichat
615e684c5d
ls: Create a ListState struct to maintain state
...
We put the out writer and style manager in there, for now.
Reduces the number of parameters to pass around, and we'll add
more useful things in there.
Little to no performance difference.
2025-04-21 12:19:14 +02:00
Nicolas Boichat
e84de9b97f
uucore: fast_inc: Add a debug_assert for developer convenience
...
Suggested by our AI overlords.
2025-04-21 11:31:08 +02:00
Nicolas Boichat
4fe0da46ba
cat: add LineNumber.to_str to clean up tests, limit to 32 digits
2025-04-21 11:25:54 +02:00
Nicolas Boichat
520459bb91
uucore: fast_inc: Change start to a &mut
...
Instead of having the caller repeatedly reassign start, it's easier
to just pass it as a mutable reference.
2025-04-21 11:25:54 +02:00
Nicolas Boichat
f9aaddfd3d
cat: Switch to uucore's fast_inc_one
...
Instead of reimplementing a string increment function, use the
one in uucore. Also, performance is around 5% better.
2025-04-21 11:25:54 +02:00
Nicolas Boichat
764514bf22
uucore: Move fast_inc functions from seq
...
A new fast-inc feature, to be used by seq and cat.
2025-04-21 11:25:54 +02:00