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

map more permission denied codes #1269

Merged
merged 1 commit into from
Oct 23, 2020

Conversation

butonic
Copy link
Contributor

@butonic butonic commented Oct 22, 2020

I replaced the magic numbers with syscall.E* error codes. I also encounter an E2BIG error (7) when trying to list a no longer shared folder ... why is eos retuning an E2BIG? or are the error codes different from syscall.E* ones? if so, can you point me to a list of the error codes?

I only added the permission checks to executeEOS(). what about execute? AFAICT it should also wrap permission errors properly, right?

@labkode @ishank011 what other error codes do we need to map?

@butonic butonic requested a review from labkode as a code owner October 22, 2020 16:00
@update-docs
Copy link

update-docs bot commented Oct 22, 2020

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
@butonic butonic force-pushed the report-error-7-as-permission-denied branch from 7c886de to a11b43f Compare October 23, 2020 10:39
@labkode labkode merged commit 5017ab4 into cs3org:master Oct 23, 2020
@butonic butonic deleted the report-error-7-as-permission-denied branch October 23, 2020 12:25
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.

2 participants