honor umask

This commit is contained in:
Sitaram Chamarty 2012-03-15 21:59:36 +05:30
parent db8dc8ca2d
commit efe37fb8a3

View file

@ -50,6 +50,8 @@ sub in_ssh {
# call this once you are sure arg-1 is the username and SSH_ORIGINAL_COMMAND # call this once you are sure arg-1 is the username and SSH_ORIGINAL_COMMAND
# has been setup (even if it's not actually coming via ssh). # has been setup (even if it's not actually coming via ssh).
sub main { sub main {
umask $rc{UMASK};
# set up the user # set up the user
my $user = $ENV{GL_USER} = shift @ARGV; my $user = $ENV{GL_USER} = shift @ARGV;