Skip to content

Commit b14c8ca

Browse files
src/io/local_cache.rs: add fixme for setting readonly
1 parent c1edbad commit b14c8ca

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/io/local_cache.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,8 @@ impl<B: IoProvider> LocalCache<B> {
307307
}
308308

309309
// Make the file readonly once it's at its final path.
310+
// XXX: It would be better to set these using the already-open file handle owned by the
311+
// tempfile, but mkstemp doesn't give us access.
310312
let mut perms = match fs::metadata(&final_path) {
311313
Ok(p) => p,
312314
Err(e) => return OpenResult::Err(e.into()),

0 commit comments

Comments
 (0)