* [PATCH] spawn: note we do not use absolute paths within our code
@ 2016-05-23 1:08 7% Eric Wong
0 siblings, 0 replies; 1+ results
From: Eric Wong @ 2016-05-23 1:08 UTC (permalink / raw)
To: meta
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 | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/PublicInbox/Spawn.pm b/lib/PublicInbox/Spawn.pm
index c5a5c01..66dce33 100644
--- a/lib/PublicInbox/Spawn.pm
+++ b/lib/PublicInbox/Spawn.pm
@@ -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})) {
^ permalink raw reply related [relevance 7%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2016-05-23 1:08 7% [PATCH] spawn: note we do not use absolute paths within our code Eric Wong
Code repositories for project(s) associated with this public inbox
https://80x24.org/public-inbox.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).