about summary refs log tree commit homepage
path: root/lib/PublicInbox/LeiOverview.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-08-11 11:26:18 +0000
committerEric Wong <e@80x24.org>2021-08-11 21:50:09 +0000
commit5634e8331cb8782944a258a12e1f9857dfb1c8e1 (patch)
treea93419e9ad7690e246928910cab6b39bb471a84a /lib/PublicInbox/LeiOverview.pm
parentd15e80db44399867d8ca53528e38f70f54562b88 (diff)
downloadpublic-inbox-5634e8331cb8782944a258a12e1f9857dfb1c8e1.tar.gz
As documented, File::Spec->canonpath does not canonicalize
"/../".  While we want to do our best to preserve symlinks in
pathnames, leaving "/../" can mislead our inotify|kqueue usage.
Diffstat (limited to 'lib/PublicInbox/LeiOverview.pm')
-rw-r--r--lib/PublicInbox/LeiOverview.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/LeiOverview.pm b/lib/PublicInbox/LeiOverview.pm
index e4242d9b..223db222 100644
--- a/lib/PublicInbox/LeiOverview.pm
+++ b/lib/PublicInbox/LeiOverview.pm
@@ -76,7 +76,7 @@ sub new {
         $fmt //= $devfd >= 0 ? 'json' : (detect_fmt($lei, $dst) or return);
 
         if (index($dst, '://') < 0) { # not a URL, so assume path
-                 $dst = File::Spec->canonpath($dst);
+                 $dst = $lei->canonpath_harder($dst);
         } # else URL
 
         my $self = bless { fmt => $fmt, dst => $dst }, $class;