Minor fix

This commit is contained in:
Florian Mounier
2014-01-31 11:34:03 +01:00
parent 466c48b53f
commit 3b94bab145
2 changed files with 2 additions and 2 deletions

View File

@@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
__version__ = '1.0.4'
__version__ = '1.0.5'
import os

View File

@@ -65,7 +65,7 @@ class TermWebSocket(Route, tornado.websocket.WebSocketHandler):
self.log.warning('chdir failed', exc_info=True)
env = os.environ
if self.is_local:
if self.is_local and os.getuid() == 0:
try:
env = self.socket_opener_environ
except: