Commit graph

8918 commits

Author SHA1 Message Date
dependabot[bot]
5dfd4c1dff build(deps): bump indicatif from 0.17.0 to 0.17.2
Bumps [indicatif](https://github.com/console-rs/indicatif) from 0.17.0 to 0.17.2.
- [Release notes](https://github.com/console-rs/indicatif/releases)
- [Commits](https://github.com/console-rs/indicatif/compare/0.17.0...0.17.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-15 14:21:15 +01:00
Sylvestre Ledru
8e1742f45a
Merge pull request #4144 from niyaznigmatullin/disable_test_cp_parents_2_dirs_for_android
test_cp: temporarily disable non-working test on Android
2022-11-15 10:37:49 +01:00
Sylvestre Ledru
47e86f37c8
Merge pull request #4143 from niyaznigmatullin/grcov_output_type
CI: switch back to use `output-type` in GNU tests with coverage
2022-11-15 10:13:21 +01:00
Niyaz Nigmatullin
f73f686ca3 test_cp: temporarily disable non-working test on Android 2022-11-15 10:00:59 +02:00
Niyaz Nigmatullin
17ec577d9a CI: switch back to use output-type in grcov
`output-types` coming in new version, we are getting
`grcov` here from `crates.io`, so no `output-type`.
`grcov` has commit to support old `output-type` as well.
2022-11-15 09:54:13 +02:00
Terts Diepraam
46016bf9ce
Merge pull request #4130 from jfinkels/dd-no-allocate-count-zero
dd: don't allocate buffer if count=0
2022-11-13 12:05:17 +01:00
Jeffrey Finkelstein
5ee5681343 dd: don't allocate buffer if count=0
As an optimization, prevent `dd` from allocating buffers for use in
its main loop when `count=0`.
2022-11-12 18:18:16 -05:00
Sylvestre Ledru
55f26f0ab2
Merge pull request #4131 from sylvestre/grcov
coverage: rename the arg to match a change in grcov
2022-11-12 09:59:16 +01:00
Sylvestre Ledru
69962250ff coverage: rename the arg to match a change in grcov
See https://github.com/mozilla/grcov/pull/893
2022-11-12 08:54:34 +01:00
Sylvestre Ledru
81a2abc094
Merge pull request #3903 from tertsdiepraam/cp-progress
`cp`: add progress bar
2022-11-11 09:25:37 +01:00
Sylvestre Ledru
76cc328f50
Merge pull request #4030 from jfinkels/cp-reflink-never-sparse-always
cp: use sparse copy on --sparse=always
2022-11-11 08:43:15 +01:00
Sylvestre Ledru
abfccb351f
Fix a clippy warning 2022-11-11 08:20:24 +01:00
Jeffrey Finkelstein
416a742e31 cp: use sparse copy on --sparse=always
Correct the behavior of `cp --reflink=never --sparse=always` so that
it performs a sparse copy. Before this commit, it was incorrectly
performing a dense copy.
2022-11-10 21:43:19 -05:00
Terts Diepraam
b821d21b7f add terminal_size to cargo deny exceptions 2022-11-11 00:44:44 +01:00
Terts Diepraam
42377626f6 docs: document extensions over GNU
docs: fix typos in extensions page
2022-11-11 00:44:44 +01:00
Terts Diepraam
21e691c3b9 cp: add progress bar
Adds the `-g` and `--progress` flags to enable a progress bar via
indicatif.
2022-11-11 00:44:42 +01:00
Emil Suleymanov
1172a7e781
cp: remove interactive mode message on 'no' (#4069) 2022-11-10 12:45:18 +01:00
Sylvestre Ledru
14e9e910de
Merge pull request #4126 from uutils/dependabot/cargo/memmap2-0.5.8
build(deps): bump memmap2 from 0.5.7 to 0.5.8
2022-11-10 08:54:28 +01:00
dependabot[bot]
83bd295926
build(deps): bump memmap2 from 0.5.7 to 0.5.8
Bumps [memmap2](https://github.com/RazrFalcon/memmap2-rs) from 0.5.7 to 0.5.8.
- [Release notes](https://github.com/RazrFalcon/memmap2-rs/releases)
- [Changelog](https://github.com/RazrFalcon/memmap2-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/RazrFalcon/memmap2-rs/compare/v0.5.7...v0.5.8)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-10 06:14:34 +00:00
Sylvestre Ledru
22bbdad46f
Merge pull request #4119 from sylvestre/platform
update to platform-info 1.0.1
2022-11-09 11:24:39 +01:00
Sylvestre Ledru
7d8ec3b7f5
Merge pull request #4120 from SteveLauC/ls/device-number-use-major-minor-from-libc
ls: use libc::{major, minor} to calculate device number
2022-11-09 11:24:05 +01:00
Steve Lau
7f7bac29b7 ls: use libc::{major, minor} to calculate device number 2022-11-09 17:13:34 +08:00
Steve Lau
2bb75a92b5 ls: use libc::{major, minor} to calculate device number 2022-11-09 17:09:54 +08:00
Sylvestre Ledru
b0b059e34a update to platform-info 1.0.1 2022-11-08 21:50:14 +01:00
Sylvestre Ledru
60cbcb88a7
Merge pull request #4118 from uutils/dependabot/cargo/clap_complete-4.0.5
build(deps): bump clap_complete from 4.0.3 to 4.0.5
2022-11-08 18:59:58 +01:00
dependabot[bot]
278b68aabd
build(deps): bump clap_complete from 4.0.3 to 4.0.5
Bumps [clap_complete](https://github.com/clap-rs/clap) from 4.0.3 to 4.0.5.
- [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-v4.0.3...clap_complete-v4.0.5)

---
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-11-08 07:56:39 +00:00
Sylvestre Ledru
c4f2ba9910
Merge pull request #4110 from uutils/dependabot/cargo/time-0.3.17
build(deps): bump time from 0.3.16 to 0.3.17
2022-11-08 08:54:26 +01:00
Sylvestre Ledru
b90c2a3083
Merge pull request #4112 from uutils/dependabot/cargo/regex-1.7.0
build(deps): bump regex from 1.6.0 to 1.7.0
2022-11-08 08:54:12 +01:00
Sylvestre Ledru
9533407d5c
Merge pull request #4117 from uutils/dependabot/cargo/clap-4.0.22
build(deps): bump clap from 4.0.19 to 4.0.22
2022-11-08 08:53:54 +01:00
dependabot[bot]
86993281fb
build(deps): bump clap from 4.0.19 to 4.0.22
Bumps [clap](https://github.com/clap-rs/clap) from 4.0.19 to 4.0.22.
- [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/v4.0.19...v4.0.22)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-08 06:13:13 +00:00
Terts Diepraam
89a2876ce0
Merge pull request #4114 from uutils/sylvestre-patch-2
CI: fix a typo
2022-11-08 01:10:52 +01:00
Sylvestre Ledru
7ecddd1f5b
CI: fix a typo 2022-11-06 21:56:59 +01:00
Terts Diepraam
526cbae9ce
Merge pull request #4113 from sylvestre/var-env
Weird env variable names should trigger an error.
2022-11-06 21:29:31 +01:00
Sylvestre Ledru
fba5e1f3a2
Merge pull request #4111 from uutils/dependabot/cargo/terminal_size-0.2.2
build(deps): bump terminal_size from 0.2.1 to 0.2.2
2022-11-06 17:39:59 +01:00
Sylvestre Ledru
9a5d18b8f6 Weird env variable names should trigger an error.
For example `env a=b=c printenv a=b` should fail

Tested by tests/misc/printenv.sh
2022-11-06 17:35:00 +01:00
dependabot[bot]
26489d47a9
build(deps): bump regex from 1.6.0 to 1.7.0
Bumps [regex](https://github.com/rust-lang/regex) from 1.6.0 to 1.7.0.
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/regex/compare/1.6.0...1.7.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-06 13:55:24 +00:00
dependabot[bot]
43c830e609
build(deps): bump terminal_size from 0.2.1 to 0.2.2
Bumps [terminal_size](https://github.com/eminence/terminal-size) from 0.2.1 to 0.2.2.
- [Release notes](https://github.com/eminence/terminal-size/releases)
- [Commits](https://github.com/eminence/terminal-size/compare/v0.2.1...v0.2.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-06 13:55:09 +00:00
dependabot[bot]
1d20abfc05
build(deps): bump time from 0.3.16 to 0.3.17
Bumps [time](https://github.com/time-rs/time) from 0.3.16 to 0.3.17.
- [Release notes](https://github.com/time-rs/time/releases)
- [Changelog](https://github.com/time-rs/time/blob/main/CHANGELOG.md)
- [Commits](https://github.com/time-rs/time/compare/v0.3.16...v0.3.17)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-06 13:54:56 +00:00
Sylvestre Ledru
9ce788632b
Merge pull request #4109 from uutils/dependabot/cargo/clap-4.0.19
build(deps): bump clap from 4.0.18 to 4.0.19
2022-11-06 14:45:26 +01:00
dependabot[bot]
9afe9804bd build(deps): bump clap from 4.0.18 to 4.0.19
Bumps [clap](https://github.com/clap-rs/clap) from 4.0.18 to 4.0.19.
- [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/v4.0.18...v4.0.19)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-06 08:44:07 +01:00
Sylvestre Ledru
8e5c259e4b
Merge pull request #3966 from jfinkels/cp-backup-force
cp: force copying file to itself with --backup
2022-11-06 08:43:52 +01:00
Sylvestre Ledru
fc96455e98
Merge pull request #4098 from sylvestre/gh
Replace set-output by the GITHUB_OUTPUT variable
2022-11-06 07:41:49 +01:00
Sylvestre Ledru
3ea7a061d7
Merge pull request #4097 from devnexen/fbsd_test_fix
fix cp tests build since they re supposed to be ignored on freebsd an…
2022-11-06 07:41:16 +01:00
Sylvestre Ledru
446df9da5a
Merge branch 'main' into cp-backup-force 2022-11-06 07:24:48 +01:00
Sylvestre Ledru
47e3149e85
Merge pull request #3978 from jfinkels/cp-copy-contents-fifo
cp: implement --copy-contents option for fifos
2022-11-06 07:23:25 +01:00
Jeffrey Finkelstein
5b100fef62 cp: implement --copy-contents option for fifos
Implement the `--copy-contents` option when the source is a FIFO, so
that the contents of the FIFO are copied (when the bytes become
available for reading) instead of the FIFO object itself. For example,

    $ mkfifo fifo
    $ cp --copy-contents fifo outfile &
    [1] 1614080
    $ echo foo > fifo
    $ cat outfile
    foo
    [1]+  Done                    cp --copy-contents fifo outfile
2022-11-05 19:25:37 -04:00
Jeffrey Finkelstein
fbed01dd54 cp: force copying file to itself with --backup
Fix the behavior of `cp` when both `--backup` and `--force` are
specified and the source and destination are the same file.  Before
this commit, `cp` terminated without copying and without making a
backup. After this commit, the copy is made and the backup file is
made. For example,

    $ touch f
    $ cp --force --backup f f

results in a backup file `f~` being created.
2022-11-05 19:23:50 -04:00
Sylvestre Ledru
f32f89cbf9
Merge pull request #4060 from orhun/refactor/add_nix_error_auto_conversion
refactor: add automatic conversion for `nix::Errno`
2022-11-04 19:09:46 +01:00
Sylvestre Ledru
6bc68cdcdf
Merge branch 'main' into refactor/add_nix_error_auto_conversion 2022-11-04 12:54:35 +01:00
Sylvestre Ledru
2af01ec344
Merge pull request #4108 from cakebaker/rm_fix_clippy_warnings
Fix clippy warnings
2022-11-04 12:54:10 +01:00