It's a TOUTTOC bug to do stat or access checks, anyways,
so just use the file and let autodie::sysopen PublicInbox::Lock
take care of the rest.
---
 lib/PublicInbox/Spawn.pm | 2 --
 1 file changed, 2 deletions(-)

diff --git a/lib/PublicInbox/Spawn.pm b/lib/PublicInbox/Spawn.pm
index 0dffe064..bb2abe28 100644
--- a/lib/PublicInbox/Spawn.pm
+++ b/lib/PublicInbox/Spawn.pm
@@ -282,8 +282,6 @@ ALL_LIBC
                        $ENV{XDG_CACHE_HOME} //
                        ( ($ENV{HOME} // '/nonexistent').'/.cache' )
                ).'/public-inbox/inline-c';
-       warn "$inline_dir exists, not writable\n" if -e $inline_dir && !-w _;
-       $all_libc = undef unless -d _ && -w _;
        if (defined $all_libc) {
                local $ENV{PERL_INLINE_DIRECTORY} = $inline_dir;
                use autodie;

Reply via email to