]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/systemctl/systemctl.c
util: when creating temporary file names, allow including extra id string in it
[thirdparty/systemd.git] / src / systemctl / systemctl.c
index a2eb435fce78733d87b27b1abc97fba4d3c484ec..40bea87dfae12ee025feec69e2566af215299044 100644 (file)
@@ -5687,7 +5687,7 @@ static int create_edit_temp_file(const char *new_path, const char *original_path
         assert(original_path);
         assert(ret_tmp_fn);
 
-        r = tempfn_random(new_path, &t);
+        r = tempfn_random(new_path, NULL, &t);
         if (r < 0)
                 return log_error_errno(r, "Failed to determine temporary filename for \"%s\": %m", new_path);