diff --git a/src/SonarScanner.MSBuild.PreProcessor/JreCaching/TarGzUnpacker.cs b/src/SonarScanner.MSBuild.PreProcessor/JreCaching/TarGzUnpacker.cs index e68768030..2869b3876 100644 --- a/src/SonarScanner.MSBuild.PreProcessor/JreCaching/TarGzUnpacker.cs +++ b/src/SonarScanner.MSBuild.PreProcessor/JreCaching/TarGzUnpacker.cs @@ -84,7 +84,7 @@ private void ExtractEntry(TarInputStream tar, string destinationFullPath, TarEnt } catch (Exception ex) // TODO: Test this when SetPermissions is extracted { - // TODO: Add some logging and inject ILogger + // TODO: Add some verbose logging and inject ILogger } } @@ -106,7 +106,7 @@ static void SetPermissions(IOperatingSystemProvider operatingSystemProvider, Tar CreateNoWindow = true, WindowStyle = ProcessWindowStyle.Hidden, FileName = "chmod", - Arguments = $"+arwx \"{destination}\"" // TODO: Specify more fine-grained permissinos + Arguments = $"""{Convert.ToString(source.TarHeader.Mode, 8)} "{destination}" """, } }; process.Start();