about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTharun Suresh <stharunvikram@gmail.com>2023-02-09 15:53:20 +0530
committerTharun Suresh <stharunvikram@gmail.com>2023-02-09 15:53:20 +0530
commit858a4aa70c74d64d897b27d034c367b7ccc7d679 (patch)
tree3c0b388d0144f3b76fe65efc9b527e1b5b431b6c
parent4259073e9a5bedd25f4860ddec2be55d995b4b9d (diff)
downloadrust-858a4aa70c74d64d897b27d034c367b7ccc7d679.tar.gz
rust-858a4aa70c74d64d897b27d034c367b7ccc7d679.zip
Handled snap curl issue inside Rust #107722
-rw-r--r--src/bootstrap/download.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bootstrap/download.rs b/src/bootstrap/download.rs
index bd67978a766..6b77737cefb 100644
--- a/src/bootstrap/download.rs
+++ b/src/bootstrap/download.rs
@@ -221,10 +221,10 @@ impl Config {
             "--retry",
             "3",
             "-Sf",
-            "-o",
         ]);
-        curl.arg(tempfile);
         curl.arg(url);
+        let f = File::create(tempfile).unwrap();
+        curl.stdout(Stdio::from(f));
         if !self.check_run(&mut curl) {
             if self.build.contains("windows-msvc") {
                 println!("Fallback to PowerShell");