Skip to content
Snippets Groups Projects
Commit e219ee2f authored by Simon McVittie's avatar Simon McVittie
Browse files

Create small temporary files in /tmp


This syncs us up with how Flatpak does it.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent 8b90a77a
No related branches found
No related tags found
No related merge requests found
......@@ -172,7 +172,7 @@ flatpak_run_add_x11_args (FlatpakBwrap *bwrap,
#ifdef ENABLE_XAUTH
g_auto(GLnxTmpfile) xauth_tmpf = { 0, };
if (glnx_open_anonymous_tmpfile (O_RDWR | O_CLOEXEC, &xauth_tmpf, NULL))
if (glnx_open_anonymous_tmpfile_full (O_RDWR | O_CLOEXEC, "/tmp", &xauth_tmpf, NULL))
{
FILE *output = fdopen (xauth_tmpf.fd, "wb");
if (output != NULL)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment