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

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