diff options
author | Eric Wong (Contractor, The Linux Foundation) <e@80x24.org> | 2019-06-11 18:34:58 +0000 |
---|---|---|
committer | Eric Wong (Contractor, The Linux Foundation) <e@80x24.org> | 2019-06-12 00:23:29 +0000 |
commit | 3fd2143efc1c96f0000af2ae7a6dee0990337fc4 (patch) | |
tree | bb77f20866edcf05d03069aa60c23bc028a3508f /script/public-inbox-edit | |
parent | 8388a137ac3b13edaa361a7fb6c85fea3c409ea8 (diff) | |
download | public-inbox-3fd2143efc1c96f0000af2ae7a6dee0990337fc4.tar.gz |
We don't need to leave temporary files lying around.
Diffstat (limited to 'script/public-inbox-edit')
-rwxr-xr-x | script/public-inbox-edit | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/script/public-inbox-edit b/script/public-inbox-edit index 16d78529..2e2c7616 100755 --- a/script/public-inbox-edit +++ b/script/public-inbox-edit @@ -121,7 +121,7 @@ $mids my $tmpl = 'public-inbox-edit-XXXXXX'; foreach my $to_edit (values %$found) { - my ($edit_fh, $edit_fn) = tempfile($tmpl, TMPDIR => 1); + my ($edit_fh, $edit_fn) = tempfile($tmpl, TMPDIR => 1, UNLINK => 1); $edit_fh->autoflush(1); my ($ibx, $smsg) = @{$to_edit->[0]}; my $old_raw = $ibx->msg_by_smsg($smsg); |