]> git.proxmox.com Git - pve-common.git/blobdiff - src/PVE/Tools.pm
Fix #1188: tempfile: use /run by default
[pve-common.git] / src / PVE / Tools.pm
index 7ee3450f9eb603c92a0ea7b613c216104f1673d0..305e1bf7407fe515fd6a844e7280edec6a203dbf 100644 (file)
@@ -1304,7 +1304,7 @@ sub tempfile {
     # default permissions are stricter than with file_set_contents
     $perm = 0600 if !defined($perm);
 
-    my $dir = $opts{dir} // '/tmp';
+    my $dir = $opts{dir} // '/run';
     my $mode = $opts{mode} // O_RDWR;
     $mode |= O_EXCL if !$opts{allow_links};