On 7/29/22 08:49, Rainer Müller wrote:
+            /* create temporary file to map stat to */
+            tmpdir = getenv("TMPDIR");
+            if (!tmpdir)
+                tmpdir = "/tmp";
+            snprintf(filename, sizeof(filename), "%s/qemu-open.XXXXXX", 
tmpdir);
+            fd = mkstemp(filename);
+            if (fd < 0) {
+                return fd;
+            }

We've been using g_file_open_tmp elsewhere; probably good to follow suit here.


r~

Reply via email to