fix type and add fixme

Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
This commit is contained in:
Nico Schottelius 2012-05-22 17:27:38 +02:00
parent e05c5e699c
commit 612fb4cb7b
2 changed files with 2 additions and 1 deletions

View file

@ -61,7 +61,7 @@ class Local(object):
self.log = logging.getLogger(self.target_host) self.log = logging.getLogger(self.target_host)
# Setup file permissions using umask # Setup file permissions using umask
os.umask(0o700) os.umask(0o077)
def create_directories(self): def create_directories(self):
self.mkdir(self.out_path) self.mkdir(self.out_path)

View file

@ -108,6 +108,7 @@ class Remote(object):
# Always call umask before actual call to ensure proper file permissions # Always call umask before actual call to ensure proper file permissions
cmd.append("umask 077;") cmd.append("umask 077;")
# FIXME: replace this by -o SendEnv name -o SendEnv name ... to ssh?
# 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: