Commit 5516ece8 by Scott Sturdivant

Ensure the tmp_path is sufficiently open.

parent 8f3b2b28
......@@ -662,7 +662,7 @@ class Runner(object):
basetmp = os.path.join('/tmp', basefile)
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 += ' && 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