We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c022fbc commit 8d082eaCopy full SHA for 8d082ea
3 files changed
src/uu/cp/src/copydir.rs
@@ -114,7 +114,7 @@ impl<'a> Context<'a> {
114
///
115
/// For convenience while traversing a directory, the [`Entry::new`]
116
/// function allows creating an entry from a [`Context`] and a
117
-/// [`DirEntry`].
+/// [`Path`].
118
119
/// # Examples
120
src/uu/cp/src/cp.rs
@@ -1789,6 +1789,7 @@ pub(crate) fn copy_attributes(
1789
let source_metadata = fs::symlink_metadata(source)
1790
.map_err(|e| CpError::IoErrContext(e, context_for(source, dest)))?;
1791
1792
+ #[cfg(unix)]
1793
let mut failed_to_set_ownership = false;
1794
1795
// Ownership must be changed first to avoid interfering with mode change.
0 commit comments