Blame SOURCES/0003-bridge-Set-a-PATH-if-none-is-set.patch

f573a2
From e87b1e53eb5c0577299118f82956caa757ef81de Mon Sep 17 00:00:00 2001
f573a2
From: petervo <petervo@redhat.com>
f573a2
Date: Wed, 10 Feb 2016 02:38:20 -0800
f573a2
Subject: [PATCH] bridge: Set a PATH if none is set
f573a2
f573a2
Closes #3723
f573a2
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
f573a2
---
f573a2
 src/bridge/cockpitbridge.c | 3 +++
f573a2
 1 file changed, 3 insertions(+)
f573a2
f573a2
diff --git a/src/bridge/cockpitbridge.c b/src/bridge/cockpitbridge.c
f573a2
index 531ecce..cb244f5 100644
f573a2
--- a/src/bridge/cockpitbridge.c
f573a2
+++ b/src/bridge/cockpitbridge.c
f573a2
@@ -302,6 +302,9 @@ cockpit_bridge_new (CockpitTransport *transport,
f573a2
                          "init-received", init_received,
f573a2
                          NULL);
f573a2
 
f573a2
+  /* Set a path if nothing is set */
f573a2
+  g_setenv ("PATH", "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", 0);
f573a2
+
f573a2
   for (i = 0; payload_types[i].name != NULL; i++)
f573a2
     {
f573a2
       cockpit_bridge_add_payload (bridge, payload_types[i].name,
f573a2
-- 
f573a2
1.8.3.1
f573a2