From ebdccd6666f97aba9285c0b337372cf13dbb3099 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 4 Oct 2023 03:49:31 +0000 Subject: 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. --- lib/PublicInbox/Spawn.pm | 2 -- 1 file changed, 2 deletions(-) (limited to 'lib/PublicInbox/Spawn.pm') 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; -- cgit v1.2.3-24-ge0c7