code: drawterm

Download patch

ref: bc9f9803fe3a2ed14cf480fb2787f51861d82abc
parent: c928f5c09c91766150fdaeb1a9e0b99b6a8d9439
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Jan 15 17:44:41 EST 2017

devfs-win32: set atime and mtime of drive volume directories

--- a/kern/devfs-win32.c
+++ b/kern/devfs-win32.c
@@ -118,6 +118,7 @@
 static void
 wfdtodir(wchar_t *path, Dir *d, WIN32_FIND_DATA *wfd)
 {
+	extern ulong kerndate;
 	WIN32_FIND_DATA f;
 
 	switch(pathtype(path)){
@@ -125,8 +126,8 @@
 	case TPATH_ROOT:
 		wfd = nil;
 		d->mode = 0777 | DMDIR;
-		d->atime = 0;
-		d->mtime = 0;
+		d->atime = seconds();
+		d->mtime = kerndate;
 		d->length = 0;
 		break;