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

Open options to control permissions on output streams #143

Open
kenbowen opened this issue Feb 9, 2019 · 2 comments
Open

Open options to control permissions on output streams #143

kenbowen opened this issue Feb 9, 2019 · 2 comments
Milestone

Comments

@kenbowen
Copy link
Member

kenbowen commented Feb 9, 2019

Design and implement an open option for output streams which can control the permissions attached to a (new) file opened as the target of a stream. It should be portable across the OSs we support, perhaps a minimalistic “executable” vs “non-executable”. The default for open(, write, …) should be “non-executable”.

@chuckhoupt
Copy link
Member

It is odd that bsio.c calls Posix open() with the mode 0777 (which creates executable files). The mode 0666 would be more typical, and it would match ANSI fopen() behavior.

Maybe a bug-issue/fix could be created/commited for changing 0777 to 0666? Then this issue would be a further enhancement to add permission support (open, chmod, etc).

@kenbowen
Copy link
Member Author

Default behavior to be taken care of by #144.

@chuckhoupt chuckhoupt added this to the Wish List milestone Feb 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants