about summary refs log tree commit homepage
path: root/script/public-inbox-convert
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2020-12-21 07:51:20 +0000
committerEric Wong <e@80x24.org>2020-12-21 21:51:57 +0000
commit3e9888ed30b7fe092b03789d19a8020d4bc0fb39 (patch)
treefcdb2a81886f3526ddaa09c674eea308310bef6b /script/public-inbox-convert
parentbad84119fb0915abe3f19fe4fb9c34e24fe7e564 (diff)
downloadpublic-inbox-3e9888ed30b7fe092b03789d19a8020d4bc0fb39.tar.gz
We need to canonicalize paths for inboxes which do not have
a newsgroup defined, otherwise ->eidx_key matches can fail
in unexpected ways.
Diffstat (limited to 'script/public-inbox-convert')
-rwxr-xr-xscript/public-inbox-convert2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/public-inbox-convert b/script/public-inbox-convert
index fbd527a6..800c364c 100755
--- a/script/public-inbox-convert
+++ b/script/public-inbox-convert
@@ -75,7 +75,7 @@ if ($opt->{'index'}) {
 }
 local %ENV = (%$env, %ENV) if $env;
 my $new = { %$old };
-$new->{inboxdir} = PublicInbox::Admin::rel2abs_collapsed($new_dir);
+$new->{inboxdir} = $cfg->rel2abs_collapsed($new_dir);
 $new->{version} = 2;
 $new = PublicInbox::InboxWritable->new($new, { nproc => $opt->{jobs} });
 $new->{-no_fsync} = 1 if !$opt->{fsync};