Blob Blame History Raw
From e87b1e53eb5c0577299118f82956caa757ef81de Mon Sep 17 00:00:00 2001
From: petervo <petervo@redhat.com>
Date: Wed, 10 Feb 2016 02:38:20 -0800
Subject: [PATCH] bridge: Set a PATH if none is set

Closes #3723
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
---
 src/bridge/cockpitbridge.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/bridge/cockpitbridge.c b/src/bridge/cockpitbridge.c
index 531ecce..cb244f5 100644
--- a/src/bridge/cockpitbridge.c
+++ b/src/bridge/cockpitbridge.c
@@ -302,6 +302,9 @@ cockpit_bridge_new (CockpitTransport *transport,
                          "init-received", init_received,
                          NULL);
 
+  /* Set a path if nothing is set */
+  g_setenv ("PATH", "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", 0);
+
   for (i = 0; payload_types[i].name != NULL; i++)
     {
       cockpit_bridge_add_payload (bridge, payload_types[i].name,
-- 
1.8.3.1