Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions src/uu/mv/src/mv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1007,15 +1007,11 @@ fn copy_dir_contents(
// Create the destination directory
fs::create_dir_all(to)?;

// Preserve ownership (uid/gid) of the top-level directory
#[cfg(unix)]
{
// Preserve ownership (uid/gid) of the top-level directory
let _ = preserve_ownership(from, to);
}

// Recursively copy contents
#[cfg(unix)]
{
if let (Some(tracker), Some(scanner)) = (hardlink_tracker, hardlink_scanner) {
copy_dir_contents_recursive(
from,
Expand Down
Loading