user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
* [PATCH] spawn: note we do not use absolute paths within our code
@ 2016-05-23  1:08 Eric Wong
  0 siblings, 0 replies; only message in thread
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	[flat|nested] only message in thread

only message in thread, other threads:[~2016-05-23  1:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-23  1:08 [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).