diff --git a/agents/meshcore.js b/agents/meshcore.js index afc00158..7a18bb05 100644 --- a/agents/meshcore.js +++ b/agents/meshcore.js @@ -1949,7 +1949,10 @@ function onTunnelData(data) { var login = process.platform == 'linux' ? '/bin/login' : '/usr/bin/login'; var env = { HISTCONTROL: 'ignoreboth' }; - if (this.httprequest.xoptions) { + if (process.env['LANG']) { env['LANG'] = process.env['LANG']; } + if (process.env['PATH']) { env['PATH'] = process.env['PATH']; } + if (this.httprequest.xoptions) + { if (this.httprequest.xoptions.rows) { env.LINES = ('' + this.httprequest.xoptions.rows); } if (this.httprequest.xoptions.cols) { env.COLUMNS = ('' + this.httprequest.xoptions.cols); } } diff --git a/agents/recoverycore.js b/agents/recoverycore.js index 5ca19756..d0d67dbb 100644 --- a/agents/recoverycore.js +++ b/agents/recoverycore.js @@ -979,7 +979,10 @@ require('MeshAgent').AddCommandHandler(function (data) { } else { var env = { HISTCONTROL: 'ignoreboth' }; - if (this.httprequest.xoptions) { + if (process.env['LANG']) { env['LANG'] = process.env['LANG']; } + if (process.env['PATH']) { env['PATH'] = process.env['PATH']; } + if (this.httprequest.xoptions) + { if (this.httprequest.xoptions.rows) { env.LINES = ('' + this.httprequest.xoptions.rows); } if (this.httprequest.xoptions.cols) { env.COLUMNS = ('' + this.httprequest.xoptions.cols); } }