Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Respect file permissions upon unarchiving #254

Closed
wants to merge 1 commit into from

Conversation

fkorotkov
Copy link
Contributor

No description provided.

@@ -141,7 +141,7 @@ func writeNewFile(fpath string, in io.Reader, fi os.FileInfo, buffer []byte) err
return fmt.Errorf("%s: making directory for file: %v", fpath, err)
}

out, err := os.Create(fpath)
out, err := os.OpenFile(fpath, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, fi.Mode())
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems to be already done below?

err = out.Chmod(fi.Mode())

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh. Then I don't know why it's not working for @AlexWayfer. @AlexWayfer could you please create an issue in https://github.com/cirruslabs/cirrus-ci-docs with a minimal reproducible case?

Choose a reason for hiding this comment

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

Oh. Then I don't know why it's not working for @AlexWayfer. @AlexWayfer could you please create an issue in https://github.com/cirruslabs/cirrus-ci-docs with a minimal reproducible case?

Of course. Done: cirruslabs/cirrus-ci-docs#1087

@fkorotkov fkorotkov closed this Oct 21, 2022
@fkorotkov fkorotkov deleted the respect-file-permissions branch October 21, 2022 18:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants