Skip to content

Commit

Permalink
Make sure newly created dir is writeable
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed May 5, 2020
1 parent 6a79e18 commit ef90599
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core.c/CompUnit/PrecompilationStore/File.pm6
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,8 @@ class CompUnit::PrecompilationStore::File
self!file($compiler-id, $precomp-id, :$extension);
}

# directory creation successful
elsif $!prefix.mkdir {
# directory creation successful and writeable
elsif $!prefix.mkdir && $!prefix.w {

# make sure we have a tag in it
$!prefix.child('CACHEDIR.TAG').spurt:
Expand Down

0 comments on commit ef90599

Please sign in to comment.