summaryrefslogtreecommitdiff
path: root/cli/disk_cache.rs
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2020-10-26 12:58:58 -0400
committerGitHub <noreply@github.com>2020-10-26 12:58:58 -0400
commitc4d33e8d778aa1b86197f1c54ff8e4e61a2ebf53 (patch)
tree6c105568b40b1b4bd3166eac7a5db20450b177e8 /cli/disk_cache.rs
parentb9dc2c3521fc5d1ad2cb3579f9be7ca8e3fd90c6 (diff)
fix: Use -rw-r--r-- for cache files (#8132)
Diffstat (limited to 'cli/disk_cache.rs')
-rw-r--r--cli/disk_cache.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/disk_cache.rs b/cli/disk_cache.rs
index 1fc9b3289..398085cc2 100644
--- a/cli/disk_cache.rs
+++ b/cli/disk_cache.rs
@@ -145,7 +145,7 @@ impl DiskCache {
Some(ref parent) => self.ensure_dir_exists(parent),
None => Ok(()),
}?;
- deno_fs::write_file(&path, data, 0o666)
+ deno_fs::write_file(&path, data, crate::http_cache::CACHE_PERM)
.map_err(|e| with_io_context(&e, format!("{:#?}", &path)))
}
}