-
-
Notifications
You must be signed in to change notification settings - Fork 65
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
Global safe tempdir #167
Global safe tempdir #167
Conversation
75392ae
to
a14e86d
Compare
Travis bugged out on me, but I guess this is good to go. |
Error on Travis seem related to some temporary problem with their apt cache, lgtm |
/* | ||
* notion/ioncore/tempdir.c | ||
* | ||
* Copyright (c) 2019 Moritz Wilhelmy |
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.
I kinda prefer Copyright (c) 2019 the Notion team
, but this is fine I guess.
|
||
if(strlen(listenfile)>SOCK_MAX){ | ||
warn("Too long socket path"); | ||
if(strlen(listenfile)>sizeof(addr.sun_path)-1){ |
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.
👍
indeed a travis rebuild did the trick |
Adds a safe temporary directory created using mkdtemp(3), makes it accessible to Lua, uses it to put the mod_notionflux socket inside and deletes everything on exit.