diff options
author | Eric Wong <e@80x24.org> | 2021-10-10 14:25:17 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-10-10 23:29:55 +0000 |
commit | 25e7cf6db84a2de9249b4a3dcc98d3514e30729a (patch) | |
tree | ea2a814815eb0be4192cd15c25ee8fd347e6f7cd | |
parent | 341af725ce7ca711e7e5906138459854a3101309 (diff) | |
download | public-inbox-25e7cf6db84a2de9249b4a3dcc98d3514e30729a.tar.gz |
This is slighly more meaningful since the file is already in ~/.local/share/lei/store, so "lei_store" was redundant (and the "XXXX" are random characters replaced by File::Temp)
-rw-r--r-- | lib/PublicInbox/LeiStore.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/LeiStore.pm b/lib/PublicInbox/LeiStore.pm index 52a1456f..613d1d31 100644 --- a/lib/PublicInbox/LeiStore.pm +++ b/lib/PublicInbox/LeiStore.pm @@ -512,7 +512,7 @@ sub xchg_stderr { return unless -e $dir; my $old = delete $self->{-tmp_err}; my $pfx = POSIX::strftime('%Y%m%d%H%M%S', gmtime(time)); - my $err = File::Temp->new(TEMPLATE => "$pfx.$$.lei_storeXXXX", + my $err = File::Temp->new(TEMPLATE => "$pfx.$$.err-XXXX", SUFFIX => '.err', DIR => $dir); open STDERR, '>>', $err->filename or die "dup2: $!"; STDERR->autoflush(1); # shared with shard subprocesses |