* Set umask to 0022 on startup.
This commit is contained in:
parent
5908663f42
commit
f66055fa1e
|
@ -7,6 +7,8 @@ my $tmpfile = "$prefix/var/nix/prebuilts.tmp";
|
|||
|
||||
my $conffile = "$etcdir/prebuilts.conf";
|
||||
|
||||
umask 0022;
|
||||
|
||||
sub register {
|
||||
my $fn = shift;
|
||||
my $url = shift;
|
||||
|
|
|
@ -5,6 +5,8 @@ my $etcdir = "$prefix/etc/nix";
|
|||
my $exportdir = "$prefix/var/nix/prebuilts/exports";
|
||||
my $knowns = "$prefix/var/nix/known-prebuilts";
|
||||
|
||||
umask 0022;
|
||||
|
||||
# For performance, put the known hashes in an associative array.
|
||||
my %knowns = ();
|
||||
open KNOWNS, "<$knowns";
|
||||
|
|
|
@ -301,6 +301,8 @@ void printUsage()
|
|||
/* Parse the command-line arguments, call the right operation. */
|
||||
void run(Strings::iterator argCur, Strings::iterator argEnd)
|
||||
{
|
||||
umask(0022);
|
||||
|
||||
Strings extraArgs;
|
||||
enum { cmdUnknown, cmdInstantiate } command = cmdUnknown;
|
||||
|
||||
|
|
Loading…
Reference in a new issue