summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Bogatov <KAction@gnu.org>2018-01-28 15:46:31 +0300
committerDmitry Bogatov <KAction@debian.org>2018-12-24 16:23:13 +0000
commit952229757ab5feb7abe3dd2f6b90b7866a317c29 (patch)
tree2078bce93331d854347b4b5a61f9d9df408000f9
parentb28e4889d840319eb709e2485ef22964af6dd5f2 (diff)
Explicitly specify PATH one remote sideHEADarchive/debian/4.10.5-1master
This patch solves issue, when remote side uses dropbear ssh server, which do not treat root specially, resulting ldconfig(8) missing in PATH. Gbp-Pq: Name explicitly-specify-path-one-remote-side.patch
-rw-r--r--cdist/exec/remote.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/cdist/exec/remote.py b/cdist/exec/remote.py
index 9e3e279..df8d454 100644
--- a/cdist/exec/remote.py
+++ b/cdist/exec/remote.py
@@ -263,6 +263,7 @@ class Remote(object):
# /bin/csh will execute this script in the right way.
if env:
remote_env = [" export %s=%s;" % item for item in env.items()]
+ remote_env += [" export PATH=/bin:/usr/bin:/sbin:/usr/sbin;"]
string_cmd = ("/bin/sh -c '" + " ".join(remote_env) +
" ".join(command) + "'")
cmd.append(string_cmd)