about summary refs log tree commit homepage
path: root/script/public-inbox-edit
diff options
context:
space:
mode:
authorEric Wong (Contractor, The Linux Foundation) <e@80x24.org>2019-06-11 18:34:58 +0000
committerEric Wong (Contractor, The Linux Foundation) <e@80x24.org>2019-06-12 00:23:29 +0000
commit3fd2143efc1c96f0000af2ae7a6dee0990337fc4 (patch)
treebb77f20866edcf05d03069aa60c23bc028a3508f /script/public-inbox-edit
parent8388a137ac3b13edaa361a7fb6c85fea3c409ea8 (diff)
downloadpublic-inbox-3fd2143efc1c96f0000af2ae7a6dee0990337fc4.tar.gz
We don't need to leave temporary files lying around.
Diffstat (limited to 'script/public-inbox-edit')
-rwxr-xr-xscript/public-inbox-edit2
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);