-
Notifications
You must be signed in to change notification settings - Fork 36
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
Create temporary files w/o race conditions whenever possible #1145
Comments
alexvong243f
pushed a commit
to alexvong243f/octsympy
that referenced
this issue
Jul 6, 2022
Try to create temporary file in the most secure and portable way possible. Partially fixes gnu-octave#1145. * inst/make_temp_file__.m: New function. * inst/@sym/sym.m: Use it. * inst/private/python_ipc_system.m: Use it.
alexvong243f
pushed a commit
to alexvong243f/octsympy
that referenced
this issue
Jul 6, 2022
Try to create temporary directory in the most secure and portable way possible. Partially fixes gnu-octave#1145. * inst/make_temp_dir__.m: New function. * inst/@sym/function_handle.m: Use it.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We should use
tmpfile
ormkstemp
to create temporary files whenever possible (only available in octave).Otherwise, fall back toIf not, we can use java as java is nearly always enabled in matlab. Otherwise, just error out and ask users to enable java.tempname
and print a warning message.See also the discussion in #1140.
The text was updated successfully, but these errors were encountered: