From e05c5e699c4b36ec7db99a7322f357a984c6bfaa Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Tue, 22 May 2012 17:24:58 +0200 Subject: [PATCH] always call umask 077 before doing stuff on the remote side Signed-off-by: Nico Schottelius --- lib/cdist/exec/remote.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/cdist/exec/remote.py b/lib/cdist/exec/remote.py index 11b8c78e..173d1984 100644 --- a/lib/cdist/exec/remote.py +++ b/lib/cdist/exec/remote.py @@ -105,6 +105,9 @@ class Remote(object): cmd = self._exec.split() 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 # variable declarations if env: