提交 4e937603 编写于 作者: B Baptiste Mathus

[FIX JENKINS-48407] Permission issue after upgrade to 2.93

Simply revert to using pre-NIO createTempFile for backward compatibility.
There is no simple way to restore a similar way using NIO's createTempFile.
上级 ee862b8c
......@@ -138,7 +138,8 @@ public class AtomicFileWriter extends Writer {
}
try {
tmpPath = Files.createTempFile(dir, "atomic", "tmp");
// JENKINS-48407: NIO's createTempFile creates file with 0600 permissions, so we use pre-NIO for this...
tmpPath = File.createTempFile("atomic", "tmp", dir.toFile()).toPath();
} catch (IOException e) {
throw new IOException("Failed to create a temporary file in "+ dir,e);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册