Skip to content

map more permission denied codes - #1269

Merged
labkode merged 1 commit into
cs3org:masterfrom
butonic:report-error-7-as-permission-denied
Oct 23, 2020
Merged

labkode merged 1 commit into
cs3org:masterfrom
butonic:report-error-7-as-permission-denied

Conversation

@butonic

@butonic butonic commented Oct 22, 2020 •

Copy link
Copy Markdown
Contributor

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

update-docs Bot commented Oct 22, 2020

Copy link
Copy Markdown

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