From f0cfc20e65b0580cd0b7cfc543e81977b411a1d3 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Wed, 2 Nov 2016 12:25:49 +0100 Subject: [PATCH] Fix #1188: tempfile: use /run by default as /tmp is not a tmpfs by default and some file systems (like ZFS) don't support O_TMPFILE --- src/PVE/Tools.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PVE/Tools.pm b/src/PVE/Tools.pm index 7ee3450..305e1bf 100644 --- a/src/PVE/Tools.pm +++ b/src/PVE/Tools.pm @@ -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}; -- 2.39.2