shithub: drawterm

Download patch

ref: 2edf616443b7bfdb0d97c4f9a11c45747ed9ab25
parent: 22aa6e041ce5d1b9734cabf95e78aad74930cdbc
author: cinap_lenrek <[email protected]>
date: Thu Dec 28 14:24:25 EST 2017

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

--- a/kern/devfs-posix.c
+++ b/kern/devfs-posix.c
@@ -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);