1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

Merge pull request #6936 from alexs-sh/fix-mv-issue-6727

fix(mv): don't panic if apply_xattrs fails
This commit is contained in:
Sylvestre Ledru 2024-12-09 09:41:24 +01:00 committed by GitHub
commit bc1bbf3e50
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -679,7 +679,7 @@ fn rename_with_fallback(
};
#[cfg(all(unix, not(any(target_os = "macos", target_os = "redox"))))]
fsxattr::apply_xattrs(to, xattrs).unwrap();
fsxattr::apply_xattrs(to, xattrs)?;
if let Err(err) = result {
return match err.kind {