mirror of
https://git.proxmox.com/git/pve-common
synced 2025-05-29 16:47:31 +00:00
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
This commit is contained in:
parent
7c1617b01d
commit
f0cfc20e65
@ -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};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user