From a381e4acc9070bad6490b83173687a4f0e142627 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 7 Nov 2020 10:56:57 +0000 Subject: extsearch: canonicalize topdir This makes `ps' output look a bit nicer if there's trailing slashes involved from the command-line. --- lib/PublicInbox/ExtSearch.pm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/PublicInbox/ExtSearch.pm') diff --git a/lib/PublicInbox/ExtSearch.pm b/lib/PublicInbox/ExtSearch.pm index 66c99eaa..eb665027 100644 --- a/lib/PublicInbox/ExtSearch.pm +++ b/lib/PublicInbox/ExtSearch.pm @@ -9,12 +9,14 @@ use strict; use v5.10.1; use PublicInbox::Over; use PublicInbox::Inbox; +use File::Spec (); # for ->reopen, ->mset, ->mset_to_artnums use parent qw(PublicInbox::Search); sub new { my (undef, $topdir) = @_; + $topdir = File::Spec->canonpath($topdir); bless { topdir => $topdir, # xpfx => 'ei15' -- cgit v1.2.3-24-ge0c7