]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
spawn: drop checks for directory writability
authorEric Wong <e@80x24.org>
Wed, 4 Oct 2023 03:49:31 +0000 (03:49 +0000)
committerEric Wong <e@80x24.org>
Wed, 4 Oct 2023 17:46:47 +0000 (17:46 +0000)
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

index 0dffe0649c8ff7be11627885325eda16814eeaf6..bb2abe28d3c6bce93678d359709deb2812b356bc 100644 (file)
@@ -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;