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

Return os consistent error in ReadOnlyFs filter #351

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jochil
Copy link

@jochil jochil commented May 3, 2022

fixes #350: Use os.ErrPermission instead of syscall.EPERM to make sure
that the error is consistent over different operating systems and can be
checked with os.isPermission(err)

fixes spf13#350: Use `os.ErrPermission` instead of `syscall.EPerm` to make sure
that the error is consistent over different operating systems and can be
checked with `os.isPermission(err)`
@CLAassistant
Copy link

CLAassistant commented May 3, 2022

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inconsistent error reporting when using ReadOnlyFs and Windows
2 participants