Sylvestre Ledru
2a969de2a4
Merge branch 'main' into kill-group-id
2022-05-18 21:12:30 +02:00
Jan Scheer
6a1cf72316
Merge branch 'main' into tail_notify
2022-05-18 14:28:19 +02:00
Jan Scheer
07231e6c6c
tail: fix handling of stdin redirects for macOS
...
On macOS path.is_dir() can be false for directories
if it was a redirect, e.g. ` tail < DIR`
* fix some tests for macOS
Cleanup:
* fix clippy/spell-checker
* fix build for windows by refactoring stdin_is_pipe_or_fifo()
2022-05-18 14:22:53 +02:00
Terts Diepraam
05dc72902b
Merge pull request #3534 from cakebaker/invalid_suffix_error
...
uucore: add InvalidSuffix to ParseSizeError
2022-05-18 07:57:24 +02:00
Jeffrey Finkelstein
a3e6d2b84b
seq: use usage error where appropriate
2022-05-17 21:02:42 -04:00
Jeffrey Finkelstein
8a941db20a
mktemp: correct error message on absolute path
...
Correct the error message produced by `mktemp` when `--tmpdir` is
given and the template is an absolute path:
$ mktemp --tmpdir=a /XXX
mktemp: invalid template, '/XXX'; with --tmpdir, it may not be absolute
2022-05-17 20:16:47 -04:00
LevitatingBusinessMan
cbc0381f20
uname: hide processor and hwplatform options
2022-05-17 23:57:05 +02:00
Daniel Hofstetter
27dd59635a
uucore: add InvalidSuffix to ParseSizeError
2022-05-17 15:37:49 +02:00
Sylvestre Ledru
d894847fc6
Merge pull request #3520 from uutils/dependabot/cargo/clap-3.1.18
...
build(deps): bump clap from 3.1.15 to 3.1.18
2022-05-17 15:15:17 +02:00
Jan Scheer
75a6641ced
Merge branch 'main' into tail_notify
2022-05-17 14:13:20 +02:00
353fc443 aka Seagull
124312702f
Merge branch 'main' into mktemp-set-dir-mode
2022-05-17 12:51:04 +01:00
dependabot[bot]
5dc1a3759a
build(deps): bump clap from 3.1.15 to 3.1.18
...
Bumps [clap](https://github.com/clap-rs/clap ) from 3.1.15 to 3.1.18.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v3.1.15...v3.1.18 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-05-17 12:41:32 +02:00
Sylvestre Ledru
e337826a11
Merge pull request #3536 from uutils/dependabot/cargo/signal-hook-0.3.14
...
build(deps): bump signal-hook from 0.3.13 to 0.3.14
2022-05-17 12:32:49 +02:00
Sylvestre Ledru
7792af336e
Merge pull request #3535 from uutils/dependabot/cargo/libc-0.2.126
...
build(deps): bump libc from 0.2.125 to 0.2.126
2022-05-17 12:32:22 +02:00
Terts Diepraam
eac0760905
Merge pull request #3528 from jfinkels/clippy-fixes
...
all: clippy fixes
2022-05-17 11:57:47 +02:00
dependabot[bot]
8d0572a3ba
build(deps): bump signal-hook from 0.3.13 to 0.3.14
...
Bumps [signal-hook](https://github.com/vorner/signal-hook ) from 0.3.13 to 0.3.14.
- [Release notes](https://github.com/vorner/signal-hook/releases )
- [Changelog](https://github.com/vorner/signal-hook/blob/master/CHANGELOG.md )
- [Commits](https://github.com/vorner/signal-hook/compare/v0.3.13...v0.3.14 )
---
updated-dependencies:
- dependency-name: signal-hook
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-05-17 07:13:56 +00:00
dependabot[bot]
cd743c2fd1
build(deps): bump libc from 0.2.125 to 0.2.126
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.125 to 0.2.126.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.125...0.2.126 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-05-17 07:13:42 +00:00
Sylvestre Ledru
e6b721ef9c
Merge pull request #3532 from uutils/dependabot/cargo/lscolors-0.10.0
...
build(deps): bump lscolors from 0.9.0 to 0.10.0
2022-05-17 09:12:07 +02:00
Sylvestre Ledru
3f682d208a
Merge pull request #3533 from uutils/dependabot/cargo/rayon-1.5.3
...
build(deps): bump rayon from 1.5.2 to 1.5.3
2022-05-17 09:11:17 +02:00
353fc443 aka Seagull
2086d04996
Merge branch 'main' into mktemp-set-dir-mode
2022-05-17 04:58:03 +00:00
Jan Scheer
409878e323
Merge branch 'main' into tail_notify
2022-05-16 22:45:52 +02:00
Jan Scheer
90cef98a14
tail: implement follow
for stdin (pipe, fifo, and redirects)
...
* implement behavior to pass `gnu/tests/tail-2/follow-stdin.sh`
* add stdin redirect using the same /dev/stdin-workaround used by uu_stat
* refactor
2022-05-16 22:27:41 +02:00
Jan Scheer
ede73745f5
test_tail: add various tests for follow-stdin and redirect-stdin
...
* add various tests adapted from `gnu/tests/tail-2/follow-stdin.sh`
* explicitly set_stdin to null where needed, otherwise stdin is always
`piped`
* tighten some existing tests (no_stderr, code_is, etc)
* add test for fifo
2022-05-16 22:17:09 +02:00
Jan Scheer
5aee95b4e5
tail: add check to detect a closed file descriptor
...
This is WIP or even WONT-FIX because there's a workaround in Rust's
stdlib which prevents us from detecting a closed FD.
see also the discussion at:
https://github.com/uutils/coreutils/issues/2873
2022-05-16 22:10:27 +02:00
Jan Scheer
59827bca1a
test_tail: add various tests for stdin-follow and stdin-redirect
...
* add various tests adapted from `gnu/tests/tail-2/follow-stdin.sh`
* explicitly set_stdin to null where needed, otherwise stdin is always
`piped`
* tighten some existing tests (no_stderr, code_is, etc)
* add test for fifo
2022-05-16 22:02:47 +02:00
Jan Scheer
5004d4b458
build-gnu: replace timeout
for tests/tail/follow-stdin.sh
...
* `tests/tail-2/follow-stdin.sh` will hang undefinedly if uu_timeout
is used
2022-05-16 21:09:51 +02:00
353fc443
2383950403
mktemp: Added tests for checking directory permissions
2022-05-16 18:05:59 +00:00
dependabot[bot]
a79d2263dd
build(deps): bump rayon from 1.5.2 to 1.5.3
...
Bumps [rayon](https://github.com/rayon-rs/rayon ) from 1.5.2 to 1.5.3.
- [Release notes](https://github.com/rayon-rs/rayon/releases )
- [Changelog](https://github.com/rayon-rs/rayon/blob/master/RELEASES.md )
- [Commits](https://github.com/rayon-rs/rayon/compare/v1.5.2...v1.5.3 )
---
updated-dependencies:
- dependency-name: rayon
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-05-16 07:01:16 +00:00
dependabot[bot]
9090457f02
build(deps): bump lscolors from 0.9.0 to 0.10.0
...
Bumps [lscolors](https://github.com/sharkdp/lscolors ) from 0.9.0 to 0.10.0.
- [Release notes](https://github.com/sharkdp/lscolors/releases )
- [Commits](https://github.com/sharkdp/lscolors/compare/v0.9.0...v0.10.0 )
---
updated-dependencies:
- dependency-name: lscolors
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-05-16 07:01:00 +00:00
Daniel Hofstetter
576aafb00f
df: fix incorrect rounding of size header
2022-05-15 16:25:17 +02:00
Sylvestre Ledru
40095e1b50
Merge pull request #3438 from jfinkels/chown-nonexistent-user-id
...
chown: allow setting arbitrary numeric user ID
2022-05-14 09:20:01 +02:00
Sylvestre Ledru
9044d96123
Merge pull request #3523 from jhscheer/fix_stat_redirect
...
test_stat: expand scope for stdin tests
2022-05-14 09:18:40 +02:00
Sylvestre Ledru
0a7ff713e0
Merge pull request #3524 from tertsdiepraam/clap-value-hints
...
Clap value hints
2022-05-14 09:18:04 +02:00
Sylvestre Ledru
f0262eebf0
Merge pull request #3526 from cakebaker/ticket_3479
...
df: round up values if block size is specified
2022-05-14 09:14:15 +02:00
ilkecan
530d5f6dbf
mv: allow a single source with --target-directory
2022-05-14 03:00:29 +00:00
Jeffrey Finkelstein
896bbec760
all: clippy fixes
2022-05-13 22:47:56 -04:00
Sylvestre Ledru
8891571e9a
Merge pull request #3522 from cakebaker/add_missing_default_blocksize_test
...
df: test default blocksize in POSIX mode
2022-05-13 18:47:29 +02:00
Sylvestre Ledru
bcdb247cda
Merge pull request #3525 from uutils/dependabot/github_actions/vmactions/freebsd-vm-0.1.6
...
build(deps): bump vmactions/freebsd-vm from 0.1.5 to 0.1.6
2022-05-13 18:46:37 +02:00
Daniel Hofstetter
996a84cb6f
df: round up values if block size is specified
...
Fixes #3479
2022-05-13 16:43:28 +02:00
Terts Diepraam
0acfa07d77
all: add value hints
2022-05-13 16:15:50 +02:00
dependabot[bot]
5d628310fc
build(deps): bump vmactions/freebsd-vm from 0.1.5 to 0.1.6
...
Bumps [vmactions/freebsd-vm](https://github.com/vmactions/freebsd-vm ) from 0.1.5 to 0.1.6.
- [Release notes](https://github.com/vmactions/freebsd-vm/releases )
- [Commits](https://github.com/vmactions/freebsd-vm/compare/v0.1.5...v0.1.6 )
---
updated-dependencies:
- dependency-name: vmactions/freebsd-vm
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-05-13 06:45:15 +00:00
Jan Scheer
fa94591b72
test_stat: expand scope for stdin tests
...
On Android and macOS all/some tests for stdin fail with:
`cannot stat '-': No such file or directory`
Apparently the `/dev/stdin` redirect workaround doesn't work for
these targets.
2022-05-12 22:49:34 +02:00
Terts Diepraam
369026a92f
tr: remove duplicate line from clap::Command
2022-05-12 22:34:08 +02:00
Jan Scheer
1de10b8333
Merge branch 'main' into fix_stat_redirect
2022-05-12 19:13:47 +02:00
Daniel Hofstetter
598dc79b69
df: test default blocksize in POSIX mode
2022-05-12 10:11:24 +02:00
Jeffrey Finkelstein
5713de4d93
fixup! uucore(perms): better support nameless uids, gids
2022-05-12 08:41:17 +02:00
Jeffrey Finkelstein
3029d83a36
Revert "WIP Trying to diagnose 'invalid group: 1001:121' error in CI environment"
...
This reverts commit 291fb3ad71a0e93705509a352fd95de7539402ed.
2022-05-12 08:41:17 +02:00
Jeffrey Finkelstein
f56903493c
WIP Trying to diagnose 'invalid group: 1001:121' error in CI environment
2022-05-12 08:41:17 +02:00
Jeffrey Finkelstein
163df8abc1
fixup! chown: allow setting arbitrary numeric user ID
2022-05-12 08:41:17 +02:00
Jeffrey Finkelstein
55550e1a6e
chown: allow setting arbitrary numeric user ID
...
Update `chown` to allow setting the owner of a file to a numeric user
ID regardless of whether a corresponding username exists on the
system.
For example,
$ touch f && sudo chown 12345 f
succeeds even though there is no named user with ID 12345.
Fixes #3380 .
2022-05-12 08:41:17 +02:00