Skip to content
This repository has been archived by the owner on Mar 29, 2023. It is now read-only.

chore(filewriter): cleanup writes #43

Merged
merged 3 commits into from
Jan 14, 2022

Conversation

schomatis
Copy link
Contributor

No description provided.

@schomatis schomatis self-assigned this Nov 1, 2021
@welcome
Copy link

welcome bot commented Nov 1, 2021

Thank you for submitting this PR!
A maintainer will be here shortly to review it.
We are super grateful, but we are also overloaded! Help us by making sure that:

  • The context for this PR is clear, with relevant discussion, decisions
    and stakeholders linked/mentioned.

  • Your contribution itself is clear (code comments, self-review for the
    rest) and in its best form. Follow the code contribution
    guidelines

    if they apply.

Getting other community members to do a review would be great help too on complex PRs (you can ask in the chats/forums). If you are unsure about something, just leave us a comment.
Next steps:

  • A maintainer will triage and assign priority to this PR, commenting on
    any missing things and potentially assigning a reviewer for high
    priority items.

  • The PR gets reviews, discussed and approvals as needed.

  • The PR is merged by maintainers when it has been approved and comments addressed.

We currently aim to provide initial feedback/triaging within two business days. Please keep an eye on any labelling actions, as these will indicate priorities and status of your contribution.
We are very grateful for your contribution!

@ipfs ipfs deleted a comment from dud1337 Nov 10, 2021
@dud1337
Copy link

dud1337 commented Dec 14, 2021

Is there a reason this isn't merged?

@BigLep
Copy link

BigLep commented Jan 7, 2022

@aschmahmann @schomatis : can we merge?

filewriter.go Outdated
switch nd := nd.(type) {
case *Symlink:
return os.Symlink(nd.Target, fpath)
case File:
f, err := os.Create(fpath)
f, err := os.OpenFile(fpath, os.O_EXCL|os.O_CREATE|os.O_WRONLY, 0666)
Copy link
Contributor

@aschmahmann aschmahmann Jan 7, 2022

Choose a reason for hiding this comment

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

@schomatis could you add back the O_NOFOLLOW flag for when we're running on systems that support it? We already have some OS specific files here so it should be pretty easy to add in another function to get OS specific symlink flags. Once that's done we can merge here.

@schomatis schomatis force-pushed the schomatis/chore/cleanup-writes branch from 3b200d5 to 004fb74 Compare January 10, 2022 13:58
Copy link
Contributor

@aschmahmann aschmahmann left a comment

Choose a reason for hiding this comment

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

Thanks 🙏

@aschmahmann aschmahmann merged commit 447f558 into master Jan 14, 2022
@aschmahmann aschmahmann deleted the schomatis/chore/cleanup-writes branch January 14, 2022 15:55
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.

4 participants