about summary refs log tree commit homepage
path: root/lib/PublicInbox/Msgmap.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-03-28 09:01:24 +0000
committerEric Wong <e@80x24.org>2021-03-28 23:01:37 +0000
commit80f4192574065106ae72a7a73ee0f02ebd86708a (patch)
treeaf6889740669aa8e05bdef4ddf932f562b3a444b /lib/PublicInbox/Msgmap.pm
parent8c8bd22ec8c74a3bf66a611a2a0c2d4d76a42ddb (diff)
downloadpublic-inbox-80f4192574065106ae72a7a73ee0f02ebd86708a.tar.gz
File::Temp only requires four 'X' characters (unlike mkstemp(3),
which requires six).  So only so only give it 4 to avoid an
80-column violation and maybe save metadata space on FSes.
Diffstat (limited to 'lib/PublicInbox/Msgmap.pm')
-rw-r--r--lib/PublicInbox/Msgmap.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Msgmap.pm b/lib/PublicInbox/Msgmap.pm
index 826c4b30..16a9a476 100644
--- a/lib/PublicInbox/Msgmap.pm
+++ b/lib/PublicInbox/Msgmap.pm
@@ -46,7 +46,7 @@ sub new_file {
 sub tmp_clone {
         my ($self, $dir) = @_;
         require File::Temp;
-        my $tmp = "mm_tmp-$$-XXXXXX";
+        my $tmp = "mm_tmp-$$-XXXX";
         my ($fh, $fn) = File::Temp::tempfile($tmp, EXLOCK => 0, DIR => $dir);
         PublicInbox::Spawn::nodatacow_fd(fileno($fh));
         $self->{dbh}->sqlite_backup_to_file($fn);