Blame SOURCES/cli-telemetry-optout.patch

debe55
diff --git a/src/dotnet/Program.cs b/src/dotnet/Program.cs
debe55
index de1ebb9e6..6bbf479de 100644
debe55
--- a/src/dotnet/Program.cs
debe55
+++ b/src/dotnet/Program.cs
debe55
@@ -28,6 +28,13 @@ public class Program
debe55
 
debe55
         public static int Main(string[] args)
debe55
         {
debe55
+            // opt out of telemetry by default if the env var is unset
debe55
+            string telemetryValue = Environment.GetEnvironmentVariable("DOTNET_CLI_TELEMETRY_OPTOUT");
debe55
+            if (String.IsNullOrEmpty(telemetryValue))
debe55
+            {
debe55
+                Environment.SetEnvironmentVariable("DOTNET_CLI_TELEMETRY_OPTOUT", "1");
debe55
+            }
debe55
+
debe55
             DebugHelper.HandleDebugSwitch(ref args);
debe55
 
debe55
             new MulticoreJitActivator().TryActivateMulticoreJit();