This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[release/3.1] Single-File: Unix: Extract to users-specific temp direc…
…tory (#9011) ** Issue dotnet/runtime#3846 ** Customer Scenario On some Unix systems, multiple users cannot use single-file apps on the same machine. ** Problem In .net core 3, single file apps run by extracting the bundled contents to a temp directory. The extraction directory is machine specific, and can be set through DOTNET_BUNDLE_EXTRACT_BASE_DIR environment variable. When this setting is not configured, the host tries to use certain default directories. On windows, extraction is within %TMPDIR%, which is user specific. On Unix systems $TMPDIR/.net if set, which may be user specific (ex: MAC) Otherwise, the extraction directory is within /var/tmp/ or /tmp/ which is common to all users, and may be locked by a specific user on first creation. ** Solution This change fixes this issue by defaulting the extraction base directory in Unix systems to <temp-dir>/.net/<user-ID> , where <temp-dir>/.net/ has permission 0777, and <temp-dir>/.net/<user-ID>/ has permission 0700. ** Risk Low, scenario is contained, change is small. ** Master Branch dotnet/runtime#2329
- Loading branch information
1 parent
8571087
commit ce27e0e
Showing
4 changed files
with
83 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters