git: 9front

Download patch

ref: 07cab9063b14f16673a7bc1d6c78beadd25edf29
parent: 4a4666660cfac1a03d1c19f82d8fd8f121540cbf
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;
 
--