about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-05-23 09:36:47 +0000
committerEric Wong <e@80x24.org>2019-05-23 17:43:50 +0000
commitadbf11e0f16714922b5eddb77d5227301a6d5adf (patch)
tree5aa3f49648f07f8b4eefab2adfe3b7d09b1615e9 /lib
parentac5a695030be64059fcb1ae826a0f3bfd2ca035b (diff)
downloadpublic-inbox-adbf11e0f16714922b5eddb77d5227301a6d5adf.tar.gz
We move the old directory into the new directory, so avoid the
situation where a bug or error could cause the tempdir cleanup to run
and destroy both our old and new directories.
Diffstat (limited to 'lib')
-rw-r--r--lib/PublicInbox/Xapcmd.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Xapcmd.pm b/lib/PublicInbox/Xapcmd.pm
index 999ddd1c..81e2f101 100644
--- a/lib/PublicInbox/Xapcmd.pm
+++ b/lib/PublicInbox/Xapcmd.pm
@@ -32,7 +32,7 @@ sub run {
         $ibx->umask_prepare;
         my $old = $ibx->search->xdir(1);
         -d $old or die "$old does not exist\n";
-        my $new = tempdir($cmd->[0].'-XXXXXXXX', CLEANUP => 1, DIR => $dir);
+        my $new = tempdir($cmd->[0].'-XXXXXXXX', DIR => $dir);
         my $v = $ibx->{version} || 1;
         my @cmds;
         if ($v == 1) {