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

Stop trying to convert fileperms() result in Internal\Filesystem\Service\Filesystem::filePerms() #306

Conversation

TravisCarden
Copy link
Collaborator

Filesystem::filePerms() currently tries to convert the result of fileperms() into a three digit mode value, but this turns out to be unreliable given octal permissions--and it diverges from the behavior of its corresponding PHP core function, fileperms(), anyway. Just stop doing any conversion at all.

@TravisCarden TravisCarden added the enhancement New feature or request label Dec 6, 2023
@TravisCarden TravisCarden added this to the v2.0.0 milestone Dec 6, 2023
@TravisCarden TravisCarden changed the title Stop trying to convert fileperms() result in Internal\Filesystem\Service\Filesystem::filePerms() Stop trying to convert fileperms() result in Internal\Filesystem\Service\Filesystem::filePerms() Dec 6, 2023
@TravisCarden TravisCarden merged commit 1b8207e into php-tuf:develop Dec 6, 2023
9 checks passed
@TravisCarden TravisCarden deleted the feature/filesystem-fileperms-return branch December 6, 2023 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant