diff options
author | Eric Wong <e@80x24.org> | 2023-10-01 09:54:21 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2023-10-01 22:41:44 +0000 |
commit | f7bb1094391e45978d40a79da05a6ce96823725e (patch) | |
tree | 329b1d732b8a3a8c84391ecdf8acb2602f4f6a85 | |
parent | 822924ebe83c16d7107068e900abc440fb0b18de (diff) | |
download | public-inbox-f7bb1094391e45978d40a79da05a6ce96823725e.tar.gz |
There's not much we can do about this aside from just ignoring errors and considering un-stat-able files as zero-sized. There's no syscalls which expose FUSE3 `readdirplus' type functionality to userspace to avoid this problem.
-rw-r--r-- | lib/PublicInbox/Git.pm | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/PublicInbox/Git.pm b/lib/PublicInbox/Git.pm index 1dbd10b7..0fd621e1 100644 --- a/lib/PublicInbox/Git.pm +++ b/lib/PublicInbox/Git.pm @@ -486,9 +486,7 @@ sub packed_bytes { my ($self) = @_; my $n = 0; my $pack_dir = git_path($self, 'objects/pack'); - foreach my $p (bsd_glob("$pack_dir/*.pack", GLOB_NOSORT)) { - $n += -s $p; - } + $n += (-s $_ // 0) for (bsd_glob("$pack_dir/*.pack", GLOB_NOSORT)); $n } |