]> Sergey Matveev's repositories - public-inbox.git/commitdiff
spawn: note we do not use absolute paths within our code
authorEric Wong <e@80x24.org>
Sun, 22 May 2016 20:59:25 +0000 (20:59 +0000)
committerEric Wong <e@80x24.org>
Sun, 22 May 2016 20:59:25 +0000 (20:59 +0000)
We can't rely on absolute paths when installed on other
systems.

Unfortunately, mlmmj-* requires them, but none of the core
code will use it.

lib/PublicInbox/Spawn.pm

index c5a5c01223a6461b5ff13daf186241178f2f6344..66dce3353e3bd872fad51838a53200bf94f50632 100644 (file)
@@ -144,6 +144,7 @@ unless (defined $vfork_spawn) {
        *public_inbox_fork_exec = *PublicInbox::SpawnPP::public_inbox_fork_exec
 }
 
+# n.b. we never use absolute paths with this
 sub which ($) {
        my ($file) = @_;
        foreach my $p (split(':', $ENV{PATH})) {