From: Eric Wong Date: Wed, 4 Oct 2023 03:49:31 +0000 (+0000) Subject: spawn: drop checks for directory writability X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ebdccd6666f97aba9285c0b337372cf13dbb3099;p=thirdparty%2Fpublic-inbox.git spawn: drop checks for directory writability 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. --- diff --git a/lib/PublicInbox/Spawn.pm b/lib/PublicInbox/Spawn.pm index 0dffe0649..bb2abe28d 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;