shithub: drawterm

Download patch

ref: 2edf616443b7bfdb0d97c4f9a11c45747ed9ab25
parent: 22aa6e041ce5d1b9734cabf95e78aad74930cdbc
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Thu Dec 28 13:24:25 EST 2017

devfs-posix: add missing stat() call in fsattach to fill info for root fid

--- a/kern/devfs-posix.c	Thu Dec 28 13:09:40 2017
+++ b/kern/devfs-posix.c	Thu Dec 28 13:24:25 2017
@@ -55,6 +55,9 @@
 	static int devno;
 	Ufsinfo *uif;
 
+	if(stat("/", &stbuf) < 0)
+		error(strerror(errno));
+
 	c = devattach('U', spec);
 
 	uif = mallocz(sizeof(Ufsinfo), 1);