-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Allow reading file-based app from stdin #49348
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
Conversation
} | ||
|
||
// If '-' is specified as the input file, read all text from stdin into a temporary file and use that as the entry point. | ||
entryPointFilePath = Path.GetTempFileName(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On Unix can't assume that only current user has access to this file path. Don't we need to enforce current user permissions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. It seems that GetTempFileName uses mkstemps which creates the file with 0600 permissions. I'm not sure if all that is guaranteed, but I'd hope it is, I see GetTempFileName used all over the place without any additional code to enforce the unix mode.
Resolves #49201.