ramfs: allow changing mtime in wstats
This commit is contained in:
parent
222018340b
commit
e5c47ca18e
1 changed files with 4 additions and 0 deletions
|
@ -352,6 +352,10 @@ fswstat(Req *r)
|
|||
truncfile(f, r->d.length);
|
||||
|
||||
accessfile(f, AWRITE);
|
||||
if(r->d.mtime != ~0){
|
||||
f->mtime = r->d.mtime;
|
||||
}
|
||||
|
||||
respond(r, nil);
|
||||
return;
|
||||
|
||||
|
|
Loading…
Reference in a new issue