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
Jeffrey Finkelstein
08b6dd4975
uucore(perms): better support nameless uids, gids
...
Update the `wrap_chown()` function to support user IDs and group IDs
that do not correspond to named users or groups, respectively. Before
this commit, the result from `uid2usr()` and `gid2grp()` calls were
unwrapped because we assumed a user name or group name, respectively,
existed. However, this is not always true: for example, running the
command `sudo chown 12345 f` works even if there is no named user with
ID 12345. This commit expands `wrap_chown()` to work even if no name
exists for the user or group.
2022-05-12 08:41:17 +02:00
Sylvestre Ledru
6f5d5aa456
Merge pull request #3492 from uutils/dependabot/github_actions/codecov/codecov-action-3
...
build(deps): bump codecov/codecov-action from 1 to 3
2022-05-12 08:40:16 +02:00
Sylvestre Ledru
565e4855ca
Merge pull request #3493 from uutils/dependabot/github_actions/EndBug/add-and-commit-9
...
build(deps): bump EndBug/add-and-commit from 7 to 9
2022-05-12 08:40:02 +02:00
Sylvestre Ledru
91653fff28
Merge pull request #3494 from uutils/dependabot/github_actions/actions/cache-3
...
build(deps): bump actions/cache from 2 to 3
2022-05-12 08:39:40 +02:00
Sylvestre Ledru
8f5af59f48
Merge pull request #3507 from uutils/dependabot/cargo/clap_complete-3.1.4
...
build(deps): bump clap_complete from 3.1.3 to 3.1.4
2022-05-12 08:39:02 +02:00
Sylvestre Ledru
a3e4f7d375
Merge pull request #3495 from uutils/dependabot/github_actions/actions/checkout-3
...
build(deps): bump actions/checkout from 2 to 3
2022-05-12 08:36:50 +02:00
Sylvestre Ledru
296374c2b0
Merge pull request #3496 from uutils/dependabot/github_actions/actions/upload-artifact-3
...
build(deps): bump actions/upload-artifact from 2 to 3
2022-05-12 08:36:20 +02:00
Sylvestre Ledru
6a9a7d76fc
Merge pull request #3498 from jhscheer/fix_stat_redirect
...
stat: improve handling of stdin/fifo (fix #3485 )
2022-05-12 08:35:43 +02:00
Sylvestre Ledru
e1adde913f
Merge pull request #3508 from uutils/dependabot/cargo/unindent-0.1.9
...
build(deps): bump unindent from 0.1.8 to 0.1.9
2022-05-12 08:35:09 +02:00
Sylvestre Ledru
1ca4cf5ea7
Merge pull request #3512 from jfinkels/mktemp-invalid-template-path-sep
...
mktemp: error on path separator in template prefix
2022-05-12 08:34:50 +02:00
Sylvestre Ledru
c212f4a556
Merge pull request #3513 from cakebaker/portability_headers
...
df: implement POSIX conform header line
2022-05-12 08:33:50 +02:00
Sylvestre Ledru
d8dae53df0
Merge pull request #3514 from cakebaker/show_error_if_blocksize_is_zero
...
df: show error if provided block size is zero
2022-05-12 08:26:24 +02:00
Daniel Hofstetter
a6b100a5ca
df: show error if provided block size is zero
2022-05-11 12:59:51 +02:00
Daniel Hofstetter
e26fed61b3
df: implement POSIX conform header line
...
It also fixes #3195
2022-05-11 12:59:47 +02:00
Jeffrey Finkelstein
2874f18950
mktemp: error on path separator in template prefix
...
Correct the error that arises from a path separator in the prefix
portion of a template argument provided to `mktemp`. Before this
commit, the error message was incorrect:
$ mktemp -t a/bXXX
mktemp: failed to create file via template 'a/bXXX': No such file or directory (os error 2) at path "/tmp/a/bege"
After this commit, the error message is correct:
$ mktemp -t a/bXXX
mktemp: invalid template, 'a/bXXX', contains directory separator
The code was failing to check for a path separator in the prefix
portion of the template.
2022-05-11 12:59:44 +02:00
dependabot[bot]
b2eb4e8391
build(deps): bump unindent from 0.1.8 to 0.1.9
...
Bumps [unindent](https://github.com/dtolnay/indoc ) from 0.1.8 to 0.1.9.
- [Release notes](https://github.com/dtolnay/indoc/releases )
- [Commits](https://github.com/dtolnay/indoc/compare/0.1.8...0.1.9 )
---
updated-dependencies:
- dependency-name: unindent
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-05-11 12:59:40 +02:00
dependabot[bot]
f9a5d758f0
build(deps): bump clap_complete from 3.1.3 to 3.1.4
...
Bumps [clap_complete](https://github.com/clap-rs/clap ) from 3.1.3 to 3.1.4.
- [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/clap_complete-v3.1.3...clap_complete-v3.1.4 )
---
updated-dependencies:
- dependency-name: clap_complete
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-05-11 12:59:36 +02:00
Terts Diepraam
53c3efecd8
kill: remove table_old arg in favor of a short alias
2022-05-11 12:59:29 +02:00
Terts Diepraam
a7cf757127
kill: kill process group with negative id
2022-05-11 12:59:29 +02:00
Terts Diepraam
e1d50dae87
kill: fix typo
2022-05-11 12:59:29 +02:00
Jan Scheer
d906f09e6e
stat: improve handling of stdin/fifo ( fix #3485 )
...
* fix https://github.com/uutils/coreutils/issues/3485
* improve the workaround from #3280
* add tests
2022-05-11 12:59:25 +02:00
dependabot[bot]
28c6403ffa
build(deps): bump actions/upload-artifact from 2 to 3
...
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact ) from 2 to 3.
- [Release notes](https://github.com/actions/upload-artifact/releases )
- [Commits](https://github.com/actions/upload-artifact/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-05-11 12:59:21 +02:00
dependabot[bot]
fd057574d7
build(deps): bump actions/checkout from 2 to 3
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-05-11 12:59:18 +02:00
dependabot[bot]
372d460d7a
build(deps): bump actions/cache from 2 to 3
...
Bumps [actions/cache](https://github.com/actions/cache ) from 2 to 3.
- [Release notes](https://github.com/actions/cache/releases )
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md )
- [Commits](https://github.com/actions/cache/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: actions/cache
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-05-11 12:59:15 +02:00
dependabot[bot]
376f6a158b
build(deps): bump EndBug/add-and-commit from 7 to 9
...
Bumps [EndBug/add-and-commit](https://github.com/EndBug/add-and-commit ) from 7 to 9.
- [Release notes](https://github.com/EndBug/add-and-commit/releases )
- [Changelog](https://github.com/EndBug/add-and-commit/blob/main/CHANGELOG.md )
- [Commits](https://github.com/EndBug/add-and-commit/compare/v7...v9 )
---
updated-dependencies:
- dependency-name: EndBug/add-and-commit
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-05-11 12:59:12 +02:00
dependabot[bot]
eeec680c37
build(deps): bump codecov/codecov-action from 1 to 3
...
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action ) from 1 to 3.
- [Release notes](https://github.com/codecov/codecov-action/releases )
- [Changelog](https://github.com/codecov/codecov-action/blob/master/CHANGELOG.md )
- [Commits](https://github.com/codecov/codecov-action/compare/v1...v3 )
---
updated-dependencies:
- dependency-name: codecov/codecov-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-05-11 12:59:08 +02:00
Sylvestre Ledru
25ecb81c7f
Merge branch 'main' into mktemp-set-dir-mode
2022-05-11 12:59:05 +02:00
Sylvestre Ledru
0ebd9c9391
Merge pull request #3518 from jhscheer/run_ucmd_as_root
...
test/util: improve `run_ucmd_as_root` for CICD
2022-05-11 12:57:42 +02:00
Jan Scheer
12d7d9846a
test/util: improve run_ucmd_as_root
for CICD
...
* ensure that `fn run_no_wait` is only invoked if the system running the
test has `sudo` in $path
Previously, if run inside CICD, calling `fn run_ucmd_as_root`
would provoke `fn run_no_wait` to panic because there's no `sudo`.
2022-05-10 23:41:22 +02:00
Sylvestre Ledru
2fd6ec46b7
Merge pull request #3517 from sylvestre/gnu-test-uniq
...
uniq: Disable one of the gnu test for failing too often
2022-05-10 19:31:43 +02:00
Terts Diepraam
949a79f81d
Merge pull request #3516 from sylvestre/shebang
...
Add missing \# interpreter line
2022-05-10 18:55:36 +02:00
Sylvestre Ledru
7d8b1de213
uniq: Disable one of the gnu test for failing too often
...
See: https://github.com/uutils/coreutils/issues/3509
2022-05-10 13:54:33 +02:00
Sylvestre Ledru
ece9ccdbfb
Add missing \# interpreter line
2022-05-10 13:49:52 +02:00
Jan Scheer
2f2b5348b6
Merge branch 'main' into run_ucmd_as_root
2022-05-10 12:03:32 +02:00
jfinkels
ae580cd54a
Merge pull request #3482 from cakebaker/handle_posixly_correct
...
df: use blocksize of 512 if POSIXLY_CORRECT is set
2022-05-09 19:43:58 -04:00
Sylvestre Ledru
779eca4983
Merge pull request #3319 from g-k/2884-time-0.3
...
update time crate to 0.3
2022-05-08 23:13:35 +02:00
Sylvestre Ledru
f65d72e334
also support for tests/touch/relative.sh
2022-05-08 21:52:12 +02:00
Sylvestre Ledru
d5569847bd
also support for tests/touch/no-rights.sh format
2022-05-08 21:50:12 +02:00
Sylvestre Ledru
087d4b14fc
Do not use the Rust/touch for tests/ls/abmon-align.sh
2022-05-08 21:27:08 +02:00
Daniel Hofstetter
f668b69a2c
df: use blocksize of 512 if POSIXLY_CORRECT is set
2022-05-08 14:46:31 +02:00
Sylvestre Ledru
56264ebece
Merge branch 'main' into 2884-time-0.3
2022-05-07 20:57:14 +02:00
Sylvestre Ledru
e5d973718c
Merge pull request #3502 from sylvestre/show-error-gnu
...
fix the GNU error detection
2022-05-07 20:57:02 +02:00
Jan Scheer
79e5d80e3e
stat: improve handling of stdin/fifo ( fix #3485 )
...
* fix https://github.com/uutils/coreutils/issues/3485
* improve the workaround from #3280
* add tests
2022-05-07 13:44:05 +02:00
Terts Diepraam
275f938f26
Merge pull request #3499 from cakebaker/fix_size_header_for_multiples_of_1000_and_1024
...
df: fix "Size" header for multiples of 1000 & 1024
2022-05-07 11:44:35 +02:00
Sylvestre Ledru
a640ed6489
fix the GNU error detection
2022-05-07 09:52:03 +02:00