about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/PublicInbox/Spawn.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Spawn.pm b/lib/PublicInbox/Spawn.pm
index e2868a55..b946a663 100644
--- a/lib/PublicInbox/Spawn.pm
+++ b/lib/PublicInbox/Spawn.pm
@@ -178,7 +178,7 @@ unless (defined $vfork_spawn) {
 
 sub which ($) {
         my ($file) = @_;
-        return $file if index($file, '/') == 0;
+        return $file if index($file, '/') >= 0;
         foreach my $p (split(':', $ENV{PATH})) {
                 $p .= "/$file";
                 return $p if -x $p;