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

fileops: correct error return on p_lstat failures when mkdir #5302

Merged
merged 1 commit into from
Nov 16, 2019

Conversation

tiennou
Copy link
Contributor

@tiennou tiennou commented Nov 9, 2019

IIRC I got a strange return once from lstat, which translated in a weird
error class/message being reported. As a safety measure, enforce a -1 return in
that case.

IIRC I got a strange return once from lstat, which translated in a weird
error class/message being reported. As a safety measure, enforce a -1 return in
that case.
@ethomson
Copy link
Member

ethomson commented Nov 9, 2019

LGTM. I don't think we would ever want to stop here and not report an error back to the caller. Either we ignore it (like in the ENOENT case) or we error. The current behavior definitely seems like a bug.

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.

None yet

3 participants