always call umask 077 before doing stuff on the remote side
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
This commit is contained in:
parent
1b8b54f84f
commit
e05c5e699c
1 changed files with 3 additions and 0 deletions
|
@ -105,6 +105,9 @@ class Remote(object):
|
||||||
cmd = self._exec.split()
|
cmd = self._exec.split()
|
||||||
cmd.append(self.target_host)
|
cmd.append(self.target_host)
|
||||||
|
|
||||||
|
# Always call umask before actual call to ensure proper file permissions
|
||||||
|
cmd.append("umask 077;")
|
||||||
|
|
||||||
# can't pass environment to remote side, so prepend command with
|
# can't pass environment to remote side, so prepend command with
|
||||||
# variable declarations
|
# variable declarations
|
||||||
if env:
|
if env:
|
||||||
|
|
Loading…
Reference in a new issue