Skip to content

Commit

Permalink
Merge pull request #3292 from dylanahsmith/fix-RUSTUP_PERMIT_COPY_RENAME
Browse files Browse the repository at this point in the history
Fix RUSTUP_PERMIT_COPY_RENAME condition so it is actually used
  • Loading branch information
rbtcollins authored Mar 30, 2023
2 parents f78aa86 + a9589c7 commit 7d6fe1a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/utils/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -622,9 +622,8 @@ where
OperationResult::Retry(e)
}
#[cfg(target_os = "linux")]
io::ErrorKind::Other
if process().var_os("RUSTUP_PERMIT_COPY_RENAME").is_some()
&& Some(EXDEV) == e.raw_os_error() =>
_ if process().var_os("RUSTUP_PERMIT_COPY_RENAME").is_some()
&& Some(EXDEV) == e.raw_os_error() =>
{
match copy_and_delete(name, src, dest, notify_handler) {
Ok(()) => OperationResult::Ok(()),
Expand Down

0 comments on commit 7d6fe1a

Please sign in to comment.