Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Tar: for directories, use a default mask that has the 'x' bit. - #71760

Merged
carlossanlop merged 3 commits into
dotnet:mainfrom
tmds:tar_default_dir_mode
Jul 8, 2022
Merged

carlossanlop merged 3 commits into
dotnet:mainfrom
tmds:tar_default_dir_mode

Conversation

@tmds

@tmds tmds commented Jul 7, 2022

Copy link
Copy Markdown
Member

Without the 'x'-bit, the directories that get created are not accessible.

@eerhardt @carlossanlop @dotnet/area-system-io ptal.

Without the 'x'-bit, the directories that get created are not
accessible.
@ghost ghost added area-System.IO community-contribution Indicates that the PR has been added by a community member labels Jul 7, 2022
@ghost

ghost commented Jul 7, 2022

Copy link
Copy Markdown

Tagging subscribers to this area: @dotnet/area-system-io
See info in area-owners.md if you want to be subscribed.

Issue Details

Without the 'x'-bit, the directories that get created are not accessible.

@eerhardt @carlossanlop @dotnet/area-system-io ptal.

Author: tmds
Assignees: -
Labels:

area-System.IO

Milestone: -

@stephentoub

Copy link
Copy Markdown
Member

Without the 'x'-bit, the directories that get created are not accessible.

Do we need a test that untars something containing a directory and then tries to access it, e.g. copying something inside it, reading something from it, etc.? It sounds like that would fail without this fix?

Co-authored-by: Stephen Toub <stoub@microsoft.com>
@tmds

tmds commented Jul 7, 2022

Copy link
Copy Markdown
Member Author

Do we need a test that untars something containing a directory and then tries to access it, e.g. copying something inside it, reading something from it, etc.? It sounds like that would fail without this fix?

Yes, it would fail without the fix.
The existing tests have the expected permission hard coded, so they'll also fail if this regresses.

Co-authored-by: Stephen Toub <stoub@microsoft.com>

@eerhardt eerhardt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@carlossanlop

Copy link
Copy Markdown
Contributor

/azp run runtime-extra-platforms

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@carlossanlop carlossanlop left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I ran the runtime-extra-platforms pipeline, to make sure all the exotic platforms pass too.
If it all looks good, we can merge it.

@carlossanlop

Copy link
Copy Markdown
Contributor

No tar failures. :shipit:

@carlossanlop
carlossanlop merged commit 502507a into dotnet:main Jul 8, 2022
@carlossanlop carlossanlop mentioned this pull request Jul 12, 2022
48 of 54 tasks
@ghost ghost locked as resolved and limited conversation to collaborators Aug 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-System.Formats.Tar community-contribution Indicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants