honor umask
This commit is contained in:
parent
db8dc8ca2d
commit
efe37fb8a3
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue