From: Eric Wong Date: Mon, 9 Oct 2023 18:16:18 +0000 (+0000) Subject: spawn: reinstate directory existence check X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0205e902056f9900c77840138894bf8884ea6568;p=thirdparty%2Fpublic-inbox.git spawn: reinstate directory existence check We must not attempt to use Inline::C unless a user requests it (by creating the directory) or running lei. Fixes: ebdccd6666f9 (spawn: drop checks for directory writability) --- diff --git a/lib/PublicInbox/Spawn.pm b/lib/PublicInbox/Spawn.pm index ec256698d..265638fe6 100644 --- a/lib/PublicInbox/Spawn.pm +++ b/lib/PublicInbox/Spawn.pm @@ -287,6 +287,7 @@ ALL_LIBC $ENV{XDG_CACHE_HOME} // ( ($ENV{HOME} // '/nonexistent').'/.cache' ) ).'/public-inbox/inline-c'; + undef $all_libc unless -d $inline_dir; if (defined $all_libc) { local $ENV{PERL_INLINE_DIRECTORY} = $inline_dir; use autodie;