Commit 27236cf5 by Michael DeHaan

Merge pull request #2998 from SirScott/runner-permissions

Ensure the tmp_path is sufficiently open.
parents e3af9258 5516ece8
...@@ -662,7 +662,7 @@ class Runner(object): ...@@ -662,7 +662,7 @@ class Runner(object):
basetmp = os.path.join('/tmp', basefile) basetmp = os.path.join('/tmp', basefile)
cmd = 'mkdir -p %s' % basetmp cmd = 'mkdir -p %s' % basetmp
if self.remote_user != 'root': if self.remote_user != 'root' or (self.sudo and self.sudo_user != 'root'):
cmd += ' && chmod a+rx %s' % basetmp cmd += ' && chmod a+rx %s' % basetmp
cmd += ' && echo %s' % basetmp cmd += ' && echo %s' % basetmp
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment