未验证 提交 2c56d632 编写于 作者: K Kasper Timm Hansen 提交者: GitHub

Merge pull request #32268 from freeletics/encrypted-tmp-file-name

Change temporary file name extension while editing encrypted file.
......@@ -57,7 +57,7 @@ def change(&block)
private
def writing(contents)
tmp_file = "#{content_path.basename}.#{Process.pid}"
tmp_file = "#{Process.pid}.#{content_path.basename.to_s.chomp('.enc')}"
tmp_path = Pathname.new File.join(Dir.tmpdir, tmp_file)
tmp_path.binwrite contents
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册