Skip to content

Commit

Permalink
Altered the atomic version of write_file to use temporary files that are
Browse files Browse the repository at this point in the history
also hidden files. (RT #132064)
  • Loading branch information
genio committed Mar 9, 2020
1 parent 20ded6e commit d909fac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Changes
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
Revision history File::Slurp

9999.30
-
- Altered the atomic version of write_file to use temporary files that
are also hidden files. (RT #132064)

9999.29 2019-11-27
- Correct some documentation errors where copy-paste had us saying
Expand Down
2 changes: 1 addition & 1 deletion lib/File/Slurp.pm
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ sub write_file {
# exist). This is slower, but safer.
{
local $^W = 0; # AYFKM
(undef, $file_name) = tempfile('tempXXXXX', DIR => $dir, OPEN => 0);
(undef, $file_name) = tempfile('.tempXXXXX', DIR => $dir, OPEN => 0);
}
}
$fh = local *FH;
Expand Down

0 comments on commit d909fac

Please sign in to comment.