-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Fix *nix permissions and use certificate_logical_to_actual
#27385
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -776,6 +776,18 @@ function New-TarballPackage { | |
| $Staging = "$PSScriptRoot/staging" | ||
| New-StagingFolder -StagingPath $Staging -PackageSourcePath $PackageSourcePath -R2RVerification $R2RVerification | ||
|
|
||
| # Ensure PowerShell executable has correct permissions in tarball | ||
| $pwshInStaging = Join-Path $Staging 'pwsh' | ||
| if (Test-Path -LiteralPath $pwshInStaging) { | ||
| Start-NativeExecution { chmod 755 $pwshInStaging } | ||
| } | ||
|
|
||
| # Included .NET executable for producing crash dumps | ||
| $createdumpInStaging = Join-Path $Staging 'createdump' | ||
| if (Test-Path -LiteralPath $createdumpInStaging) { | ||
| Start-NativeExecution { chmod 755 $createdumpInStaging } | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should this be
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The proposed change is consistent with the existing choice to use numbered / explicit permissions in
|
||
| } | ||
|
|
||
| if (Get-Command -Name tar -CommandType Application -ErrorAction Ignore) { | ||
| if ($Force -or $PSCmdlet.ShouldProcess("Create tarball package")) { | ||
| $options = "-czf" | ||
|
|
@@ -1194,7 +1206,11 @@ function New-UnixPackage { | |
| find $Staging -type f | xargs chmod 644 | ||
| chmod 644 $ManGzipInfo.GzipFile | ||
| # refers to executable, does not vary by channel | ||
| chmod 755 "$Staging/pwsh" #only the executable file should be granted the execution permission | ||
| chmod 755 "$Staging/pwsh" # only the executable file should be granted the execution permission | ||
|
andyleejordan marked this conversation as resolved.
|
||
| # Included .NET executable for producing crash dumps | ||
| if (Test-Path "$Staging/createdump") { | ||
| chmod 755 "$Staging/createdump" | ||
|
andyleejordan marked this conversation as resolved.
|
||
| } | ||
| } | ||
| } | ||
|
|
||
|
|
@@ -1874,6 +1890,12 @@ $(if ($extendedDescription) { $extendedDescription + "`n" }) | |
| Start-NativeExecution { chmod 755 $pwshPath } | ||
| } | ||
|
|
||
| # Included .NET executable for producing crash dumps | ||
| $createdumpPath = "$targetPath/createdump" | ||
| if (Test-Path $createdumpPath) { | ||
| Start-NativeExecution { chmod 755 $createdumpPath } | ||
|
andyleejordan marked this conversation as resolved.
|
||
| } | ||
|
|
||
| # Calculate md5sums for all files in data directory (excluding symlinks) | ||
| $md5sumsFile = Join-Path $debianDir "md5sums" | ||
| $md5Content = "" | ||
|
|
||

Uh oh!
There was an error while loading. Please reload this page.