ref: e5c47ca18e2ac3768b124edbd9f48310f3206d26
parent: 222018340bd86cf053461b57867f81ef5aabe657
author: mischief <mischief@offblast.org>
date: Mon Sep 15 11:49:39 EDT 2014
ramfs: allow changing mtime in wstats
--- a/sys/src/cmd/ramfs.c
+++ b/sys/src/cmd/ramfs.c
@@ -352,6 +352,10 @@
truncfile(f, r->d.length);
accessfile(f, AWRITE);
+ if(r->d.mtime != ~0){
+ f->mtime = r->d.mtime;
+ }
+
respond(r, nil);
return;