Skip to content
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

Fix incorrect ownerOfFile at root of filesystem #1762

Merged
merged 4 commits into from
Feb 1, 2024
Merged

Fix incorrect ownerOfFile at root of filesystem #1762

merged 4 commits into from
Feb 1, 2024

Conversation

ef4
Copy link
Contributor

@ef4 ef4 commented Jan 18, 2024

When ownerOfFile gets to the root of the filesystem it ends up trying to check the path '' which then goes through realpathSync and becomes the current working directory. This causes any unowned file to incorrectly get attributed to the app.

When ownerOfFile gets to the root of the filesystem it ends up trying to check the path `''` which then goes through realpathSync and becomes the current working directory. This causes any unowned file to incorrectly get attributed to the app.
@ef4 ef4 mentioned this pull request Jan 18, 2024
@ef4 ef4 merged commit 7a9dba4 into stable Feb 1, 2024
201 checks passed
@ef4 ef4 deleted the owner-of-file branch February 1, 2024 13:14
@NullVoxPopuli NullVoxPopuli added the bug Something isn't working label Feb 1, 2024
This was referenced Feb 1, 2024
ef4 added a commit that referenced this pull request May 28, 2024
#1762 only fixed the bug on unix. On windows the bug is still lurking.
ef4 added a commit that referenced this pull request May 28, 2024
#1762 only fixed the bug on unix. On windows the bug is still lurking.
ef4 added a commit that referenced this pull request May 28, 2024
#1762 only fixed the bug on unix. On windows the bug is still lurking.
ef4 added a commit that referenced this pull request May 28, 2024
#1762 only fixed the bug on unix. On windows the bug is still lurking.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants