]> iEval git - gruntmaster-daemon.git/commitdiff
Make sure work directory is world-searchable
authorMarius Gavrilescu <marius@ieval.ro>
Tue, 3 Feb 2015 13:42:58 +0000 (15:42 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Tue, 3 Feb 2015 13:42:58 +0000 (15:42 +0200)
lib/Gruntmaster/Daemon.pm

index 07b6fb6ca0c0e1a0fb6e75538e645057f7b7fb9c..1e5d8b2874ceb3cf3a1e24defc47c84d535cab45 100644 (file)
@@ -165,7 +165,9 @@ sub run{
        $db = Gruntmaster::Data->connect($ENV{GRUNTMASTER_DSN} // 'dbi:Pg:');
        Log::Log4perl->init('/etc/gruntmasterd/gruntmasterd-log.conf');
        get_logger->info("gruntmasterd $VERSION started");
-       chdir tempdir 'gruntmasterd.XXXX', CLEANUP => 1, TMPDIR => 1;
+       my $dir = tempdir 'gruntmasterd.XXXX', CLEANUP => 1, TMPDIR => 1;
+       chmod 0711, $dir;
+       chdir $dir;
        while (1) {
                my $job = $db->jobs->search({daemon => undef}, {rows => 1})->first;
                got_job $job if defined $job;
This page took 0.017689 seconds and 4 git commands to generate.