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

Needs a .gitignore file #1

Closed
Capstan opened this issue Oct 31, 2017 · 0 comments
Closed

Needs a .gitignore file #1

Capstan opened this issue Oct 31, 2017 · 0 comments

Comments

@Capstan
Copy link
Contributor

Capstan commented Oct 31, 2017

At least to trim out the /bazel-* intermediates.

jmmv added a commit that referenced this issue Oct 16, 2018
Previous code used to call "defer f.Close()" on handles immediately after
an open operation before checking if the open succeeded.  This caused the
code to attempt a close operation on invalid handles, which in the case of
the mount operation on a non-existent mount point, caused sandboxfs to
crash.

Fix this by simply moving the "defer f.Close()" statements after their
corresponding error checks, and add tests to ensure sandboxfs does not
misbehave in any of these cases.

As part of this change, we have unconvered another behavioral difference
between Linux and macOS: on the former, a missing mount point causes the
mount operation to fail (as it should) but, on the latter, OSXFUSE silently
creates the mount point.  To resolve this difference and unify behaviors,
we now explicitly test for the existence of the mount point prior to
attemting the mount operation.

Based on Pallav Agarwal's patch in PR #1.  Closes #1.

PiperOrigin-RevId: 169237923
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

No branches or pull requests

1 participant