Package: lei Version: 1.9.0-1 Severity: important Tags: upstream The problem is the which() sub in Spawn.pm only checks if the path fragment is executable, but this may be true of a directory as well.
In particuar, a lot of people have a git directory in their $HOME (where they store their git repos) and if $PATH contains '.' then SpawnPP.pm will try to execute this directory leading to this failure on a lot of lei commands: exec ./git var GIT_PAGER failed: Permission denied at /usr/share/perl5/PublicInbox/SpawnPP.pm line 62. fork_exec git var GIT_PAGER failed: Permission denied As you can see what's happened is it's tried to execute my ./git directory, which obviously fails. The fix is simple, skip executable files which are also directories when doing $PATH based lookup -- System Information: Debian Release: 13.0 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'testing'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 6.12.27-amd64 (SMP w/8 CPU threads; PREEMPT) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages lei depends on: ii libpublicinbox-perl 1.9.0-1 ii perl 5.40.1-3 lei recommends no packages. lei suggests no packages. -- no debconf information