Skip to content

Commit 9c3117a

Browse files
kroscisylvestre
authored andcommitted
mv: keep copying xattrs after one fails on a cross-device move
1 parent 0a134a4 commit 9c3117a

99 files changed

Lines changed: 829 additions & 831 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/CICD.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,7 @@ jobs:
876876
- { os: ubuntu-latest, features: "md5sum,sha1sum,sha224sum,sha256sum,sha384sum,sha512sum,cksum,openssl" }
877877
# macOS: vendored only — system libcrypto needs OPENSSL_DIR
878878
# pointing at Homebrew, which isn't worth wiring up for a smoke test.
879-
# MinGW(UCRT): done at make.yml as actual consumer is MSYS2 only
879+
# todo: check Windows (MinGW's system openssl)
880880
steps:
881881
- uses: actions/checkout@v7
882882
with:

.github/workflows/GnuComment.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ jobs:
1717

1818
runs-on: ubuntu-latest
1919
if: >
20-
github.event.workflow_run.event == 'pull_request' &&
21-
(github.event.workflow_run.conclusion == 'success' ||
22-
github.event.workflow_run.conclusion == 'failure')
20+
github.event.workflow_run.event == 'pull_request'
2321
steps:
2422
- name: 'Download artifact'
2523
uses: actions/github-script@v9
@@ -36,10 +34,6 @@ jobs:
3634
var matchArtifact = artifacts.data.artifacts.filter((artifact) => {
3735
return artifact.name == "comment"
3836
})[0];
39-
if (!matchArtifact) {
40-
core.info("No comment artifact found; skipping.");
41-
return;
42-
}
4337
var download = await github.rest.actions.downloadArtifact({
4438
owner: context.repo.owner,
4539
repo: context.repo.repo,

.github/workflows/make.yml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -311,16 +311,15 @@ jobs:
311311
# Upgrading it mid-session changes the shared memory layout (60344 -> 59320),
312312
# which causes subsequent fork() calls to fail with EAGAIN (exit code 254).
313313
shell: 'C:\msys64\usr\bin\bash.exe --login -eo pipefail {0}'
314-
# test Cygwin & MinGW(UCRT) instead of pre-installed Rust.
315314
run: |
316-
pacman -Sy --noconfirm --needed base-devel libopenssl make openssl-devel pkgconf rust \
317-
mingw-w64-ucrt-x86_64-openssl mingw-w64-ucrt-x86_64-rust
315+
pacman -Sy --noconfirm --needed base-devel libopenssl make openssl-devel pkgconf rust
318316
env:
319317
CHERE_INVOKING: 1
320318
- name: "`(x86_64-pc-cygwin) make install PROG_PREFIX=uu- PROFILE=release-small COMPLETIONS=n MANPAGES=n LOCALES=n`"
321319
shell: 'C:\msys64\usr\bin\bash.exe --login -eo pipefail {0}'
322320
run: |
323321
set -x
322+
export OPENSSL_NO_VENDOR=1
324323
export CARGOFLAGS="--features openssl"
325324
DESTDIR=/tmp/c make install PROG_PREFIX=uu- PROFILE=release-small COMPLETIONS=n MANPAGES=n LOCALES=n
326325
# Check that cksum is linked with openssl (e.g. msys-crypto-*.dll)
@@ -340,7 +339,6 @@ jobs:
340339
bsdtar -caf x86_64-pc-cygwin.tar.zst -C /tmp/c/usr/local bin
341340
env:
342341
CHERE_INVOKING: 1
343-
OPENSSL_NO_VENDOR: "1"
344342
RUST_BACKTRACE: "1"
345343
- name: Publish
346344
uses: softprops/action-gh-release@v3
@@ -353,21 +351,14 @@ jobs:
353351
individual-x86_64-pc-cygwin.tar.zst
354352
env:
355353
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
356-
- name: "`make install` (MinGW UCRT)"
357-
shell: 'C:\msys64\usr\bin\bash.exe --login -eo pipefail {0}'
358-
env:
359-
CHERE_INVOKING: 1
360-
MSYSTEM: "UCRT64"
361-
OPENSSL_DIR: "/ucrt64"
362-
OPENSSL_NO_VENDOR: "1"
363-
OPENSSL_STATIC: "0"
354+
- name: "`make install`"
355+
shell: bash
364356
run: |
365357
set -x
366-
export CARGOFLAGS="--features openssl"
367358
# Check that we exclude unix programs to avoid build failure
368359
# Windows's stdbuf depends on Cygwin's libstdbuf. So make should not try to install libstdbuf
369360
make install DESTDIR=/tmp/w PREFIX=/tmp/usr MULTICALL=y COMPLETIONS=n MANPAGES=n LOCALES=n \
370-
SKIP_UTILS="arch b2sum base32 base64 basename basenc cat comm cp csplit cut date dd df dir dircolors dirname du echo env expand expr factor false fmt fold head hostname hostid join link ln ls md5sum mkdir mktemp more mv nl nproc numfmt od paste pathchk pr printenv printf ptx pwd readlink realpath rm rmdir seq sha1sum sha224sum sha256sum sha384sum sha512sum shred shuf sleep sort split sum sync tac tail tee test touch tr true truncate tsort tty uname unexpand uniq unlink vdir wc whoami yes"
361+
SKIP_UTILS="arch b2sum base32 base64 basename basenc cat cksum comm cp csplit cut date dd df dir dircolors dirname du echo env expand expr factor false fmt fold head hostname hostid join link ln ls md5sum mkdir mktemp more mv nl nproc numfmt od paste pathchk pr printenv printf ptx pwd readlink realpath rm rmdir seq sha1sum sha224sum sha256sum sha384sum sha512sum shred shuf sleep sort split sum sync tac tail tee test touch tr true truncate tsort tty uname unexpand uniq unlink vdir wc whoami yes"
371362
target/release/coreutils.exe stdbuf --version
372363
373364
test_busybox:

Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

GNUmakefile

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -261,15 +261,6 @@ INSTALLEES_WITH_EXTRA_LOCALE = \
261261
$(INSTALLEES) \
262262
$(if $(findstring sum, $(INSTALLEES)),checksum_common, )
263263
install-locales:
264-
@# Install common locales shared by all utilities
265-
@if [ -d "$(BASEDIR)/src/uucore/locales" ]; then \
266-
$(INSTALL) -d "$(DESTDIR)$(DATAROOTDIR)/locales/uucore"; \
267-
for locale_file in "$(BASEDIR)"/src/uucore/locales/*.ftl; do \
268-
if [ "$$(basename "$$locale_file")" != "en-US.ftl" ]; then \
269-
$(INSTALL) -m 644 "$$locale_file" "$(DESTDIR)$(DATAROOTDIR)/locales/uucore/"; \
270-
fi; \
271-
done; \
272-
fi
273264
@# Install lazy error locales shared by all utilities
274265
@if [ -d "$(BASEDIR)/src/uucore/locales/errors" ]; then \
275266
$(INSTALL) -d "$(DESTDIR)$(DATAROOTDIR)/locales/uucore/errors"; \

build.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ pub fn main() {
2121

2222
// Check for tldr.zip when building uudoc to warn users once at build time
2323
// instead of repeatedly at runtime for each utility
24-
println!("cargo:rerun-if-changed=docs/tldr.zip");
2524
if env::var("CARGO_FEATURE_UUDOC").is_ok() && !Path::new("docs/tldr.zip").exists() {
2625
println!(
2726
"cargo:warning=No tldr archive found, so the documentation will not include examples."

deny.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ skip = [
6666
{ name = "itertools", version = "0.13.0" },
6767
# codspeed-divan-compat-macros
6868
{ name = "itertools", version = "0.14.0" },
69+
# ordered-multimap
70+
{ name = "hashbrown", version = "0.14.5" },
6971
# lru (via num-prime)
7072
{ name = "hashbrown", version = "0.16.1" },
7173
# cexpr (via bindgen)

fuzz/fuzz_targets/fuzz_env.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
//
33
// For the full copyright and license information, please view the LICENSE
44
// file that was distributed with this source code.
5-
65
// spell-checker:ignore chdir putenv
76

87
#![no_main]

src/uu/base32/src/base_common.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ pub fn base_app(about: String, usage: String) -> Command {
124124
.short('w')
125125
.long(options::WRAP)
126126
.value_name("COLS")
127-
.allow_hyphen_values(true)
128127
.help(translate!("base-common-help-wrap", "default" => WRAP_DEFAULT))
129128
.overrides_with(options::WRAP),
130129
)

src/uu/chroot/src/chroot.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
// file that was distributed with this source code.
55

66
// spell-checker:ignore (ToDO) NEWROOT Userspec chrooting chroots chdir pstatus repointed
7-
87
mod error;
98

109
use crate::error::ChrootError;

0 commit comments

Comments
 (0)