Krysztal112233
35c39a65e5
Merge branch 'uutils:main' into main
2024-03-22 16:48:47 +08:00
Krysztal112233
2b5e7caf8b
lint: fix clippy::manual_str_repeat
in parse_glob.rs
2024-03-22 00:02:04 +08:00
Krysztal112233
eb3fac3567
lint: fix clippy::needless_borrows_for_generic_args
in perms.rs
2024-03-21 23:54:37 +08:00
Krysztal112233
b66d6dffcf
lint: fix clippy::needless_borrows_for_generic_args
in perms.rs
2024-03-21 23:53:32 +08:00
Krysztal112233
72b7266f71
lint: allow clippy::needless_borrow
in perms.rs
2024-03-21 23:50:23 +08:00
Krysztal112233
0bb179311d
lint: fix clippy::bool_assert_comparison
in perms.rs
2024-03-21 23:47:57 +08:00
hanbings
30452ced73
Add 0xDE flag to to support zfs file system.
2024-03-21 22:20:31 +08:00
Ben Wiederhake
133cdde885
cksum: implement and test --base64 output method
2024-03-18 20:59:59 +01:00
Sylvestre Ledru
696615099c
Merge pull request #6088 from cre4ture/fix/gnu_test_dd_not_rewound_sh
...
`dd` fix gnu test `not-rewound.sh`
2024-03-17 23:03:22 +01:00
Ulrich Hornung
40577177b2
re-use existing fd for stdout even if its a seek-able file
...
this is important as the fd holds the file offset we need to use
2024-03-17 20:46:49 +01:00
Daniel Hofstetter
6d8b21da80
Fix two "item x is imported redundantly" warnings
2024-03-15 14:53:00 +01:00
Daniel Hofstetter
15cb0242ea
uucore/pipes: adapt to new return type of nix fn
...
nix 0.28 changed the return type of unistd::pipe() from Result<(RawFd, RawFd), Error> to Result<(OwnedFd, OwnedFd), Error>
2024-03-12 08:31:15 +01:00
Sylvestre Ledru
93b1abff39
Merge pull request #6036 from cj-zoltan-kiss/zoltankiss/globfix
...
parser: if closing square bracket not found, stop looking for it again
2024-03-11 19:51:18 +01:00
Zoltan Kiss
be24742282
parser: if closing square bracket not found, stop looking for it again
...
This solves #5584 , where the fuzzing would take hours without this.
2024-03-11 17:24:01 +01:00
Ben Wiederhake
d25d994125
uucore: drop unused function resolve_relative_path
...
This function is by necessity ill-defined: Depending on the context,
'..' is either the logical parent directory, sometimes the physical
parent directory. This function can only work for the latter case,
in which case `Path::canonicalize` is often a better approach.
2024-03-07 14:58:02 +01:00
Ben Wiederhake
5c2c38c31e
chgrp+chown: also trigger preserve-root during dirwalking, fix error message
...
This is explicitly tested in the GNU tests.
2024-03-07 14:58:02 +01:00
Dorian Péron
7094ff17cf
printf: Raise error on '%0c' and '%0s' formats
2024-03-01 00:15:58 +01:00
Daniel Hofstetter
5d359783a0
uucore/format: add padlen to spell-checker:ignore
2024-02-29 15:27:11 +01:00
Dorian Péron
42cde767d2
printf: Change get_char and write_padded to handle bytes instead of chars
2024-02-29 00:59:08 +01:00
Yury Zhytkou
17174ab986
uniq
: pass remaining GNU tests (#5994 )
2024-02-25 09:45:37 +01:00
Daniel Hofstetter
725da985c1
Fix "item x imported redundantly" warnings
2024-02-19 15:39:37 +01:00
Terts Diepraam
177ac7ea28
stat
: use chrono instead of time in fsext (#5934 )
...
* stat: use chrono instead of time in fsext
This removes the dependency of `fsext` on `time` and it cleans up the code.
* stat: use chrono instead of time in fsext
This removes the dependency of `fsext` on `time` and it cleans up the code.
* stat: fix two errors from clippy & spell-checker
* stat: move fn to fix clippy error
* stat: print - if birth time unknown
* uucore/fsext: fix "unused import" error on Windows
---------
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2024-02-19 10:21:26 +01:00
Daniel Hofstetter
420dfe8a9b
Merge pull request #5958 from tertsdiepraam/csplit-printf
...
`csplit`: use `printf` functionality from `uucore`
2024-02-16 14:39:03 +01:00
Terts Diepraam
50cab572db
uucore: ensure quoting-style feature is enabled if format is enabled
2024-02-10 21:37:28 +01:00
Ulrich Hornung
e68312cae9
sane blksize to avoid memory kill in split -n 3 /dev/zero
2024-02-10 14:33:13 +01:00
Terts Diepraam
a4f626efa2
uucore/format: refactor handling of flags to make clippy happy
2024-02-10 12:48:35 +01:00
Terts Diepraam
3a21d27c1e
uucore/format: ignore the 0
flag if a precision is specified
2024-02-10 12:22:11 +01:00
Terts Diepraam
a30dce0b7c
uucore/format: cast signedint to unsignedint if possible
2024-02-10 11:51:20 +01:00
Daniel Hofstetter
337bfeebc1
uucore/num_format: fix typo in comment
2024-02-09 13:28:18 +01:00
Terts Diepraam
3126e5f8a1
printf: fix padding and prefixes for unsigned ints
2024-02-09 13:28:18 +01:00
Terts Diepraam
4dae902429
printf: pad octal numbers with zeros on the left
2024-02-09 13:28:18 +01:00
Daniel Hofstetter
d2a75457f6
Fix errors reported by new version of cspell
2024-02-05 09:12:52 +01:00
Ulrich Hornung
93d922f075
squash commit
2024-02-03 17:08:39 +01:00
Daniel Hofstetter
9c7675945f
uucore: fix "X is never used" warnings on Redox
2024-02-02 09:33:35 +01:00
Sudhakar Verma
bd336ebbf1
dd: fail on missing number in count
2024-01-30 20:21:25 +05:30
kralo
9906e66096
uucore: remove unneccessary closues
...
This adresses only those where the fix has less letters than the
original and is "trivial" (There are possibly a lot of std::string::ToString::to_string
and those may only be shortened with additional imports).
Found with clippy::redundant-closure-for-method-calls
2024-01-28 09:42:40 +01:00
Sylvestre Ledru
dd5c6c2d00
0.0.23 => 0.0.24
2024-01-20 20:12:19 +01:00
Sylvestre Ledru
b7a14ac119
Merge pull request #5825 from tertsdiepraam/codecov-uucore-features
...
CI: test `uucore` with `coreutils` in codecov to run it with the proper features
2024-01-17 11:51:02 +01:00
Terts Diepraam
61de1dc23a
uucore/sum: fix crlf test
2024-01-17 10:44:33 +01:00
Terts Diepraam
3bd9f0ec65
Merge pull request #5811 from spineki/fix-printf-hex-alternate-zero
...
Printf: Fix printf hex alternate zero
2024-01-17 10:28:30 +01:00
Sylvestre Ledru
3872aca9c6
spell: ignore getxattr
2024-01-16 13:12:02 +01:00
Sylvestre Ledru
66637a6503
move the file_has_acl function into uucore
2024-01-16 13:12:02 +01:00
Sylvestre Ledru
2ec4e9f784
mv: preserve the xattr
...
Should make tests/mv/acl pass
2024-01-16 13:12:02 +01:00
Sylvestre Ledru
fe3f8293ef
uucore: add a new feature called fsxattr
2024-01-16 13:11:58 +01:00
Daniel Hofstetter
112eb21eb3
Merge pull request #5791 from sylvestre/handle-error
...
Handle better some errors
2024-01-15 15:19:10 +01:00
Sylvestre Ledru
4557821adf
Merge branch 'main' into fix-printf-hex-alternate-zero
2024-01-15 10:41:09 +01:00
Daniel Hofstetter
e91540fc07
uucore: fix clippy warning from if_not_else lint
2024-01-15 10:27:59 +01:00
Sylvestre Ledru
8d24036f5c
basenc: handle '--base32 .' arg
2024-01-14 23:27:00 +01:00
Sylvestre Ledru
edb77b8d59
Merge pull request #5827 from samueltardieu/issue-5826
...
printf: %c prints the first byte of its argument
2024-01-12 00:25:32 +01:00
Samuel Tardieu
47e908bc6c
printf: output of double-quote should not be escaped
...
This is obtained by escaping the sequence `\"` as `"`.
2024-01-10 19:17:42 +01:00