]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/ExtSearch.pm
extsearch: canonicalize topdir
[public-inbox.git] / lib / PublicInbox / ExtSearch.pm
index 66c99eaa35eae88fd207930fe3165dd692ab7aa2..eb665027e73f754384eb10f101fd0d41ebb3a4a3 100644 (file)
@@ -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'