code: drawterm

Download patch

ref: f2c70311723da08865377e9a16528545f3a826ab
parent: 0f3766f44e554d73c7a3d8bab55cc32dc13f1c26
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Feb 25 18:33:24 EST 2017

devfs-posix: fix syntax error...

--- a/kern/devfs-posix.c
+++ b/kern/devfs-posix.c
@@ -409,9 +409,9 @@
 	}
 	if(~d.atime != 0 || ~d.mtime != 0){
 		struct timeval t[2];
-		t[0].tv_sec = ~d.atime != 0 ? d.atime : stbuf->st_atime;
+		t[0].tv_sec = ~d.atime != 0 ? d.atime : stbuf.st_atime;
 		t[0].tv_usec = 0;
-		t[1].tv_sec = ~d.mtime != 0 ? d.mtime : stbuf->st_mtime;
+		t[1].tv_sec = ~d.mtime != 0 ? d.mtime : stbuf.st_mtime;
 		t[1].tv_usec = 0;
 		utimes(uif->path, t);
 	}