Sylvestre Ledru
bb2fb66073
Merge pull request #6882 from jtracey/quoting_style_bytes
...
quoting_style: Add support for non-UTF-8 bytes
2024-12-21 23:17:43 +01:00
Sylvestre Ledru
21e7149a92
Merge pull request #6986 from uutils/renovate/thiserror-2.x-lockfile
...
chore(deps): update rust crate thiserror to v2.0.9
2024-12-21 23:15:04 +01:00
renovate[bot]
d762a1633f
chore(deps): update rust crate thiserror to v2.0.9
2024-12-21 19:31:59 +00:00
Daniel Hofstetter
a152687d48
Merge pull request #6971 from sylvestre/mkfifo
...
mkfifo: better handle the mode + umask
2024-12-21 15:31:15 +01:00
Sylvestre Ledru
609eee6f0c
Merge pull request #6984 from cakebaker/cut_fix_overriding_of_equal_delimiter
...
cut: fix overriding of `-d=`
2024-12-20 18:40:28 +01:00
Sylvestre Ledru
31ffc3a0eb
mkfifo: better handle the mode + umask
...
Should make tests/misc/mknod.sh pass
2024-12-20 18:17:52 +01:00
Daniel Hofstetter
cf8a81c6c2
cut: fix overriding of -d=
2024-12-20 10:02:36 +01:00
Sylvestre Ledru
389ccbc145
Merge pull request #6976 from dcampbell24/zizmor-fix-02
...
Use the env variable STYLE_FAIL_ON_FAULT.
2024-12-20 09:31:39 +01:00
David Campbell
183063fa14
Merge branch 'main' into zizmor-fix-02
2024-12-20 03:13:15 -05:00
Sylvestre Ledru
37492b4815
Merge pull request #6982 from jtracey/patch-8
...
Android CICD: use posix style test
2024-12-20 07:54:51 +01:00
Justin Tracey
74b613d155
Android CICD: use posix style test
2024-12-19 21:01:56 -05:00
Justin Tracey
db1ed4c094
core: improve OsStr(ing) helpers
...
This adds the `os_str_as_bytes_lossy` function, for when we want infallible
conversion across platforms, and improves the doc comments of similar functions
to be more accurate and better formatted.
2024-12-19 17:10:16 -05:00
Santeri Paavolainen
2ae914b268
uucore: correctly truncate response if getgroups shrinks ( #6978 )
...
The code above this line handles the case if `res` is
larger than `ngroups`, but `res < ngroups` is also a possibility,
which this line attempts to address but actually does not.
The original code resizes to `ngroups` which is a no-op (given
that `groups` is already `ngroups` size). The correct target for
re-sizing the `groups` is the result from the last `getgroups`,
i.e., `res`.
2024-12-19 13:54:24 +01:00
Sylvestre Ledru
4341ae3223
Merge pull request #6964 from DaringCuteSeal/splice-uucore
...
uucore: add common splice-write functionality
2024-12-19 13:38:26 +01:00
Daringcuteseal
625c49d0fe
uucore: add common splice-write functionality
...
Splice is a Linux-specific syscall that allows direct data copying from
one file descriptor to another without user-space buffer. As of now, this
is used by `cp`, `cat`, and `install` when compiled for Linux and Android.
2024-12-19 18:32:11 +07:00
David Campbell
8ba264fa27
Use the env variable STYLE_FAIL_ON_FAULT.
2024-12-19 09:08:44 +01:00
Sylvestre Ledru
db332e52b3
Merge pull request #6974 from dcampbell24/zizmor-fix-00
...
GnuComment: zizmor: ignore[dangerous-triggers]
2024-12-19 09:08:31 +01:00
Sylvestre Ledru
20c128a68e
Merge pull request #6975 from dcampbell24/zizmor-fix-01
...
Set persist-credentials: false
2024-12-19 08:55:53 +01:00
Sylvestre Ledru
0e11bbf39e
Merge pull request #6973 from dcampbell24/zizmor-fix
...
Put DEFAULT_BRANCH into an env variable.
2024-12-19 07:53:30 +01:00
Daniel Hofstetter
3620e08a3c
Merge pull request #6977 from uutils/renovate/libc-0.x-lockfile
...
fix(deps): update rust crate libc to v0.2.169
2024-12-19 07:37:48 +01:00
renovate[bot]
3295e831a1
fix(deps): update rust crate libc to v0.2.169
2024-12-19 06:09:57 +00:00
David Campbell
655defd15c
Set persist-credentials: false
2024-12-18 21:27:34 -05:00
David Campbell
15bea52b53
GnuComment: zizmor: ignore[dangerous-triggers]
2024-12-18 20:04:50 -05:00
David Campbell
67360ba8e9
Put DEFAULT_BRANCH into an env variable.
2024-12-18 18:42:06 -05:00
Justin Tracey
43229ae104
quoting_style: use and return OsStrings
...
This exposes the non-UTF-8 functionality to callers. Support in `argument`,
`spec`, and `wc` are implemented, as their usage is simple. A wrapper only
returning valid unicode is used in `ls`, since proper handling of OsStrings
there is more involved (outputs that escape non-unicode work now though).
2024-12-18 15:28:39 -05:00
Justin Tracey
2331600f4c
quoting_style: fix multi-byte control characters
2024-12-18 15:28:28 -05:00
Justin Tracey
355103134b
quoting_style: add support for non-unicode bytes
...
This new functionality is implemented, but not yet exposed here.
2024-12-18 15:28:18 -05:00
Justin Tracey
cb3be5e3aa
Bump MSRV to 1.79
2024-12-18 14:02:42 -05:00
Sylvestre Ledru
8bbe39c9ca
Merge pull request #6970 from cakebaker/cut_test_refactorings
...
cut: some test refactorings
2024-12-18 18:28:46 +01:00
Daniel Hofstetter
6224c374ae
cut: use short and long args in two tests
2024-12-18 16:17:30 +01:00
Daniel Hofstetter
5ea4903632
cut: rename some tests
2024-12-18 14:52:04 +01:00
Daniel Hofstetter
9aca24365f
cut: simplify test by removing assert_eq! calls
2024-12-18 14:44:12 +01:00
Daniel Hofstetter
2f82853bfa
cut: move two tests to better places within file
2024-12-18 14:42:18 +01:00
Daniel Hofstetter
02eb2c0bab
Merge pull request #6910 from sylvestre/clippy1
...
clippy: fix clippy warnings
2024-12-18 08:08:56 +01:00
Daniel Hofstetter
33c65d5c0f
Merge pull request #6969 from uutils/renovate/thiserror-2.x-lockfile
...
chore(deps): update rust crate thiserror to v2.0.8
2024-12-18 06:59:23 +01:00
renovate[bot]
5cd665363d
chore(deps): update rust crate thiserror to v2.0.8
2024-12-18 04:30:52 +00:00
Sylvestre Ledru
7708f6e39a
clippy: replace .as_bytes().len() => .len()
2024-12-17 22:47:45 +01:00
Sylvestre Ledru
beb56b10ab
clippy: fix clippy warnings
...
See:
https://rust-lang.github.io/rust-clippy/master/index.html#map_unwrap_or
2024-12-17 22:46:21 +01:00
Sylvestre Ledru
55ffdb0847
Merge pull request #6967 from uutils/renovate/clap_complete-4.x-lockfile
...
fix(deps): update rust crate clap_complete to v4.5.40
2024-12-17 22:23:07 +01:00
Sylvestre Ledru
cc7e0af3f3
Merge pull request #6966 from cakebaker/build_gnu_sh_adapt_basenc_message
...
build-gnu.sh: adapt `basenc` message to clap changes
2024-12-17 22:22:38 +01:00
renovate[bot]
8edefdc287
fix(deps): update rust crate clap_complete to v4.5.40
2024-12-17 18:36:05 +00:00
Daniel Hofstetter
dd741eac19
build-gnu.sh: adapt basenc message to clap changes
2024-12-17 14:59:40 +01:00
Sylvestre Ledru
7c65243680
Merge pull request #6963 from cakebaker/basenc_fix_b16_9_and_10
...
basenc: ignore case with "--base16 --decode"
2024-12-17 11:36:01 +01:00
Daniel Hofstetter
d414dbc83b
basenc: ignore case with "--base16 --decode"
2024-12-17 10:52:25 +01:00
Sylvestre Ledru
9abf9d0fb5
Merge pull request #6873 from cakebaker/bump_zip
...
Bump `zip` from `1.1.4` to `2.2.2`
2024-12-17 09:20:59 +01:00
Daniel Hofstetter
dd3d0a383f
Bump zip from 1.1.4 to 2.2.2
2024-12-17 07:40:08 +01:00
Daniel Hofstetter
c04566ca6e
Merge pull request #6961 from uutils/renovate/clap_complete-4.x-lockfile
...
fix(deps): update rust crate clap_complete to v4.5.39
2024-12-17 07:00:05 +01:00
renovate[bot]
d20c7fdef6
fix(deps): update rust crate clap_complete to v4.5.39
2024-12-16 18:34:19 +00:00
Sylvestre Ledru
6755956bc4
cut.pl: adjust to our messages as they are better ( #6921 )
...
* cut.pl: adjust to our messages as they are better
but we still have some differences on this test
* cut: add some missing line return when needed
* cut: add failing tests covered by cut.pl
* Remove dup test
* cut: add spell-checker:ignore line to test
---------
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2024-12-16 15:37:29 +01:00
Sylvestre Ledru
388624996b
Merge pull request #6960 from cakebaker/GNUmakefile_remove_duplicate_sleep
...
GNUmakefile: remove `sleep` from `UNIX_PROGS` to avoid warning
2024-12-16 10:22:27 +01:00