Jan Scheer
90a0226844
tail: improve support for polling
...
* Fix a timing related bug with polling (---disable-inotify) where some
Events weren't delivered fast enough by `Notify::PollWatcher` to pass all
of tests/tail-2/retry.sh and test_tail::{test_retry4, retry7}.
* uu_tail now reverts to polling automatically if inotify backend reports
too many open files (this mimics the behavior of GNU's tail).
2022-04-30 12:02:42 +02:00
Jan Scheer
5331a10a7b
tail: update README
2022-04-24 15:09:28 +02:00
Jan Scheer
6e1e3ac012
Merge branch 'main' into tail_notify
2022-04-23 00:26:59 +02:00
Jan Scheer
ceb2e993c0
tail: update readmes
2022-04-23 00:26:22 +02:00
Terts Diepraam
0324be1f17
Merge pull request #3436 from cakebaker/fix_use_of_undeclared_crate_nix
...
Add "nix" to Cargo.toml to fix compile error
2022-04-22 22:45:59 +02:00
Daniel Hofstetter
88c2b445e5
Add "nix" to Cargo.toml
2022-04-22 17:17:17 +02:00
Sylvestre Ledru
48a521224e
Merge pull request #3396 from jtracey/android2
...
fix Android support
2022-04-22 16:06:12 +02:00
Jan Scheer
132cab15d2
tail: update notify crate
...
notify-crate:
Switch from latest release to latest commit on main branch
in order to fix the builds on FreeBSD/macOS.
https://github.com/notify-rs/notify/pull/399
2022-04-22 09:54:21 +02:00
Jan Scheer
6c096267bf
Merge branch 'main' into tail_notify
2022-04-21 23:55:54 +02:00
Jan Scheer
4a56d2916d
tail: fix handling of -f
with non regular files
...
This makes uu_tail pass the "gnu/tests/tail-2/inotify-only-regular" test
again by adding support for charater devices.
test_tail:
* add test_follow_inotify_only_regular
* add clippy fixes for windows
2022-04-21 22:52:17 +02:00
Sylvestre Ledru
4ea443bf42
Merge pull request #3407 from uutils/dependabot/cargo/crossterm-0.23.2
...
build(deps): bump crossterm from 0.23.1 to 0.23.2
2022-04-21 21:32:51 +02:00
Sylvestre Ledru
f684162e21
Merge pull request #3403 from uutils/dependabot/cargo/remove_dir_all-0.7.0
...
build(deps): bump remove_dir_all from 0.5.3 to 0.7.0
2022-04-21 21:32:23 +02:00
Terts Diepraam
e8574ca184
Merge pull request #3418 from cakebaker/ticket_3409
...
df: show error if all types are excluded
2022-04-20 23:51:36 +02:00
Sylvestre Ledru
ddb87d500f
Allow v0.5.3 of remove_all_dir for tempfile
2022-04-20 19:10:20 +02:00
Sylvestre Ledru
4c5f586e33
Allow 0.10.2+wasi-snapshot-preview1 of wasi for getrandom
2022-04-20 19:01:57 +02:00
Sylvestre Ledru
4ed3bbe705
Merge pull request #3423 from cakebaker/remove_trailing_spaces_in_rightmost_column
...
df: remove trailing spaces in rightmost column
2022-04-20 11:42:27 +02:00
Sylvestre Ledru
f6dafbc950
Merge pull request #3429 from cakebaker/ticket_3425
...
df: fix "File" column width for unicode filenames
2022-04-20 10:50:07 +02:00
Justin Tracey
67a01a5d79
preserve LD_PRELOAD in the test env
2022-04-20 08:44:49 +02:00
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
Jan Scheer
7228902e55
Merge branch 'main' into tail_notify
2022-04-19 22:25:35 +02:00
Jan Scheer
eb21330ade
Merge branch 'main' into tail_notify
2022-04-19 22:14:55 +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