We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 416f4e9 + ebbfced commit edf7206Copy full SHA for edf7206
src/rustup-utils/src/utils.rs
@@ -311,11 +311,7 @@ pub fn copy_file(src: &Path, dest: &Path) -> Result<()> {
311
path: PathBuf::from(src),
312
})?;
313
if metadata.file_type().is_symlink() {
314
- let link = fs::read_link(src).chain_err(|| ErrorKind::ReadingFile {
315
- name: "link contents for",
316
- path: PathBuf::from(src),
317
- })?;
318
- symlink_file(&link, dest).map(|_| ())
+ symlink_file(&src, dest).map(|_| ())
319
} else {
320
fs::copy(src, dest)
321
.chain_err(|| ErrorKind::CopyingFile {
0 commit comments