Commit graph

7660 commits

Author SHA1 Message Date
Justin Tracey
4caeb2ff1d add Android to CICD 2022-04-20 08:44:49 +02:00
Justin Tracey
1f025c19af address libc weirdness on 32 bit android 2022-04-20 08:44:49 +02:00
Justin Tracey
2a0d58d060 get android builds to compile and pass tests 2022-04-20 08:44:49 +02:00
Justin Tracey
5e7d58650d fix null pointer derefs
The code for creating a Passwd from the fields of the raw syscall result
assumed that the syscall would return valid C strings in all non-error
cases. This is not true, and at least one platform (Android) will
populate the fields with null pointers where they are not supported.

To fix this and prevent the error from happening again, this commit
changes `cstr2string(ptr)` to check for a null pointer, and return an
`Option<String>`, with `None` being the null pointer case. While
arguably it should be the caller's job to check for a null pointer
before calling (since the safety precondition is that the pointer is to
a valid C string), relying on the type checker to force remembering this
edge case is safer in the long run.
2022-04-20 08:44:49 +02:00
Sylvestre Ledru
45b29d287f
Remove an old comment
We have windows stable in the CI:
https://github.com/uutils/coreutils/runs/6082164374?check_suite_focus=true
And no longer Redox:
https://github.com/uutils/coreutils/pull/2550
2022-04-20 08:37:53 +02:00
Terts Diepraam
cce2eebf98
Merge pull request #3420 from sylvestre/install-verbose
install: verbose - list all created directories
2022-04-19 18:56:57 +02:00
Terts Diepraam
68d5a5a9b8
Merge pull request #3424 from sylvestre/coreutils-update2
update another ref to coreutils 9.1
2022-04-19 18:48:56 +02:00
Sylvestre Ledru
bfaf7616e2
Improve the GNU doc when a test uses $fail 2022-04-19 17:20:37 +02:00
Daniel Hofstetter
9de407b1f0 df: fix "File" column width for unicode filenames
Fixes #3425
2022-04-19 11:09:46 +02:00
Daniel Hofstetter
cc4b28780b df: show error if all types are excluded
Fixes #3409
2022-04-19 09:10:37 +02:00
Daniel Hofstetter
576ec49fa5 df: remove trailing spaces in rightmost column 2022-04-19 08:13:35 +02:00
Sylvestre Ledru
346902e30b
Merge pull request #3428 from cakebaker/fix_test_df_output_overridden
df: fix broken "test_df_output_overridden" test
2022-04-19 08:06:39 +02:00
Daniel Hofstetter
0d7f99a21f df: fix broken "test_df_output_overridden" test 2022-04-19 07:46:00 +02:00
Sylvestre Ledru
d7cf3e7483
Merge pull request #3414 from gmnsii/main
df: -h -H shouldn't cause an error #3366
2022-04-18 22:24:36 +02:00
Sylvestre Ledru
7910eca71b install: verbose - list all created directories
$ install -Dv source_file1 sub3/a/b/c/file
install: creating directory 'sub3'
install: creating directory 'sub3/a'
install: creating directory 'sub3/a/b'
install: creating directory 'sub3/a/b/c'
'source_file1' -> 'sub3/a/b/c/file'
2022-04-18 22:06:02 +02:00
Sylvestre Ledru
ee50f408bd
Merge pull request #3419 from sylvestre/install-strip
install: When install --strip-program=foor fails, remove the target file
2022-04-18 19:29:26 +02:00
Sylvestre Ledru
b93fb8de70 update another ref to coreutils 9.1 2022-04-18 14:56:11 +02:00
Terts Diepraam
ae24ca45f1
Merge pull request #3386 from cakebaker/ticket_3194
df: fix incorrect whitespace between columns
2022-04-18 11:13:33 +02:00
Terts Diepraam
cb257e3339
Merge pull request #3421 from sylvestre/coreutils-update
GNU/Coreutils: update the reference to 9.1
2022-04-18 11:07:18 +02:00
Sylvestre Ledru
f00ca57903
Merge pull request #3417 from tertsdiepraam/uniq-gnu-tests
`uniq`: almost fix gnu test
2022-04-18 00:45:34 +02:00
Sylvestre Ledru
9813f48ed8 GNU/Coreutils: update the reference to 9.1 2022-04-18 00:34:42 +02:00
Sylvestre Ledru
6da73e6a6d install: When install --strip-program=foor fails, remove the target file
Should fix:
tests/install/strip-program.sh
2022-04-17 22:24:44 +02:00
dependabot[bot]
1eb7612966
build(deps): bump crossterm from 0.23.1 to 0.23.2
Bumps [crossterm](https://github.com/crossterm-rs/crossterm) from 0.23.1 to 0.23.2.
- [Release notes](https://github.com/crossterm-rs/crossterm/releases)
- [Changelog](https://github.com/crossterm-rs/crossterm/blob/master/CHANGELOG.md)
- [Commits](https://github.com/crossterm-rs/crossterm/commits)

---
updated-dependencies:
- dependency-name: crossterm
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-17 19:41:07 +00:00
Terts Diepraam
62d96db16b
docs: don't download the tldr archive (#3415)
The ureq dependency is causing compilation errors on various platforms (see #3184, #3216, #3375). Hence we remove that dependency and do not automatically download the archive anymore. Instead, we ask the user to download it separately when the archive is not found.
2022-04-17 21:33:51 +02:00
Terts Diepraam
87f06637a9 tests/uniq: add GNU tests as Rust tests
tests/uniq: fix and uncomment test case 120
2022-04-17 16:50:18 +02:00
Terts Diepraam
487c874204 uniq: print warning when both -D and -c are passed 2022-04-17 16:32:01 +02:00
Daniel Hofstetter
a052855061 df: fix incorrect whitespace between columns
Fixes #3194
2022-04-17 14:00:52 +02:00
gmnsii
c9bf31f97e
Args override themselves and conflicting arguments 2022-04-17 01:52:05 -07:00
Sylvestre Ledru
34a1b23342
add more information about the GNU compat (#3410)
* add more information about the GNU compat

Co-authored-by: Terts Diepraam <terts.diepraam@gmail.com>
2022-04-17 08:59:42 +02:00
Terts Diepraam
0a3b07f056
Merge pull request #3412 from cakebaker/remove_options_field
df: remove obsolete "show_listed_fs" options field
2022-04-17 08:42:12 +02:00
gmnsii
85d113ab79
df: -h -H shouldn't cause an error #3366 2022-04-16 07:51:24 -07:00
Daniel Hofstetter
6664525449 df: remove obsolete "show_listed_fs" options field 2022-04-16 15:31:38 +02:00
gmnsii
c2e214bd99
Add dir and vdir utils (based on ls)
Fix issue #3163

They are basically ls with some different options.
2022-04-15 17:30:40 +02:00
Sylvestre Ledru
02bd97a00d
Merge pull request #3406 from uutils/dependabot/cargo/rayon-1.5.2
build(deps): bump rayon from 1.5.1 to 1.5.2
2022-04-15 09:13:28 +02:00
dependabot[bot]
f74f3911e2
build(deps): bump rayon from 1.5.1 to 1.5.2
Bumps [rayon](https://github.com/rayon-rs/rayon) from 1.5.1 to 1.5.2.
- [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/commits)

---
updated-dependencies:
- dependency-name: rayon
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-14 20:01:46 +00:00
Sylvestre Ledru
f03ab63af2
Merge pull request #3402 from uutils/dependabot/cargo/redox_syscall-0.2.13
build(deps): bump redox_syscall from 0.2.12 to 0.2.13
2022-04-14 21:59:56 +02:00
Sylvestre Ledru
4f41e285a8
Merge pull request #3288 from cakebaker/ticket_3252
df: show error if specified type doesn't exist
2022-04-14 15:51:05 +02:00
dependabot[bot]
fae0065276
build(deps): bump remove_dir_all from 0.5.3 to 0.7.0
Bumps [remove_dir_all](https://github.com/XAMPPRocky/remove_dir_all) from 0.5.3 to 0.7.0.
- [Release notes](https://github.com/XAMPPRocky/remove_dir_all/releases)
- [Changelog](https://github.com/XAMPPRocky/remove_dir_all/blob/master/CHANGELOG.md)
- [Commits](https://github.com/XAMPPRocky/remove_dir_all/compare/remove_dir_all@0.5.3...v0.7.0)

---
updated-dependencies:
- dependency-name: remove_dir_all
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-14 11:14:49 +00:00
dependabot[bot]
9036e92fa0
build(deps): bump redox_syscall from 0.2.12 to 0.2.13
Bumps redox_syscall from 0.2.12 to 0.2.13.

---
updated-dependencies:
- dependency-name: redox_syscall
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-14 11:10:20 +00:00
Sylvestre Ledru
a6de705226
Merge pull request #3401 from uutils/dependabot/cargo/clap-3.1.8
build(deps): bump clap from 3.1.6 to 3.1.8
2022-04-14 13:07:37 +02:00
Sylvestre Ledru
9beca8b28e
Merge pull request #3400 from uutils/dependabot/cargo/zip-0.6.0
build(deps): bump zip from 0.5.13 to 0.6.0
2022-04-14 12:01:32 +02:00
Daniel Hofstetter
a5477960a5 df: show error if specified type doesn't exist
Fixes #3252. As a side effect, "df -H -total" will now fail, too, as
expected.
2022-04-14 10:39:48 +02:00
dependabot[bot]
4820e7ee76
build(deps): bump clap from 3.1.6 to 3.1.8
Bumps [clap](https://github.com/clap-rs/clap) from 3.1.6 to 3.1.8.
- [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.6...v3.1.8)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-14 07:17:35 +00:00
dependabot[bot]
b20446490e
build(deps): bump zip from 0.5.13 to 0.6.0
Bumps [zip](https://github.com/zip-rs/zip) from 0.5.13 to 0.6.0.
- [Release notes](https://github.com/zip-rs/zip/releases)
- [Commits](https://github.com/zip-rs/zip/commits/v0.6)

---
updated-dependencies:
- dependency-name: zip
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-14 07:17:20 +00:00
Sylvestre Ledru
5425b7744e
Merge pull request #3398 from uutils/dependabot/cargo/byte-unit-4.0.14
build(deps): bump byte-unit from 4.0.13 to 4.0.14
2022-04-14 09:15:54 +02:00
Sylvestre Ledru
67986bf412
Merge pull request #3397 from uutils/dependabot/cargo/selinux-0.2.7
build(deps): bump selinux from 0.2.5 to 0.2.7
2022-04-14 09:15:24 +02:00
dependabot[bot]
4e1f2aec47
build(deps): bump byte-unit from 4.0.13 to 4.0.14
Bumps [byte-unit](https://github.com/magiclen/byte-unit) from 4.0.13 to 4.0.14.
- [Release notes](https://github.com/magiclen/byte-unit/releases)
- [Commits](https://github.com/magiclen/byte-unit/compare/v4.0.13...v4.0.14)

---
updated-dependencies:
- dependency-name: byte-unit
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-13 21:24:09 +00:00
dependabot[bot]
a791541e1c
build(deps): bump selinux from 0.2.5 to 0.2.7
Bumps [selinux](https://github.com/koutheir/selinux) from 0.2.5 to 0.2.7.
- [Release notes](https://github.com/koutheir/selinux/releases)
- [Changelog](https://github.com/koutheir/selinux/blob/master/CHANGELOG.md)
- [Commits](https://github.com/koutheir/selinux/commits)

---
updated-dependencies:
- dependency-name: selinux
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-13 21:23:48 +00:00
Sylvestre Ledru
7967017086
Merge pull request #3358 from uutils/dependabot/cargo/nom-7.1.1
build(deps): bump nom from 7.1.0 to 7.1.1
2022-04-13 23:21:38 +02:00
Sylvestre Ledru
a08038f2e8
Merge pull request #3395 from uutils/dependabot/cargo/regex-1.5.5
build(deps): bump regex from 1.5.4 to 1.5.5
2022-04-13 23:21:25 +02:00