Skip to content

Commit d8f313b

Browse files
authored
Merge pull request #5569 from wasmerio/fix/fs-copy-reference-permission-denied
Fix a couple of webc FS issues
2 parents 8b9f87f + eb6e6a1 commit d8f313b

File tree

4 files changed

+207
-89
lines changed

4 files changed

+207
-89
lines changed

lib/virtual-fs/src/buffer_file.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,13 @@ impl AsyncRead for BufferFile {
6969

7070
impl VirtualFile for BufferFile {
7171
fn last_accessed(&self) -> u64 {
72-
0
72+
1_000_000_000 // 1 second after epoch, since zero times are bad!
7373
}
7474
fn last_modified(&self) -> u64 {
75-
0
75+
1_000_000_000
7676
}
7777
fn created_time(&self) -> u64 {
78-
0
78+
1_000_000_000
7979
}
8080
fn size(&self) -> u64 {
8181
self.data.get_ref().len() as u64

0 commit comments

Comments
 (0)