shithub: drawterm

Download patch

ref: 831505184ff4d34508216418ecb6ec0db77f5d54
parent: 807168fe7239d1940a63544d014887c61f19b540
author: aiju <devnull@localhost>
date: Tue Apr 17 05:45:02 EDT 2018

windows: fix creating directories under volume root

--- a/kern/devfs-win32.c	Tue Apr 17 05:44:47 2018
+++ b/kern/devfs-win32.c	Tue Apr 17 05:45:02 2018
@@ -423,7 +423,7 @@
 	if(perm & DMDIR) {
 		wchar_t *p;
 		DIR *d;
-		if(m || t!=TPATH_FILE)
+		if(m || t==TPATH_ROOT)
 			error(Eperm);
 		if(!CreateDirectory(newpath, NULL))
 			oserror();