Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Conversation

jinroh
Copy link
Contributor

@jinroh jinroh commented Nov 6, 2016

Flag checking is using a | instead of & against os.O_CREATE.

@mcuadros
Copy link
Contributor

mcuadros commented Nov 6, 2016

cool, how you found the issue? this requires a test @smola

@jinroh
Copy link
Contributor Author

jinroh commented Nov 7, 2016

I just reviewed the code changes from rc1 to rc2, and it caught my eyes.

@smola
Copy link
Collaborator

smola commented Nov 7, 2016

Tests added. Thanks @jinroh!

@mcuadros mcuadros merged commit ff6f760 into src-d:master Nov 7, 2016
@jinroh jinroh deleted the fix-ocreate-flag-check branch November 7, 2016 10:03
mcuadros pushed a commit that referenced this pull request Jan 31, 2017
* utils/fs: Fix O_CREATE flag check in OpenFile

* utils/fs/os: test that Open does not create dirs.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants