shithub: qk1

Download patch

ref: d5136c313dff0b98316e313000161dc18f50025e
parent: 85483b8691e4ebfb9778449c7ce5c2b4516f724a
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Wed Jun 25 15:31:25 EDT 2025

fs: treat only the last path as writable (stop creating empty dirs at cwd)

--- a/fs.c
+++ b/fs.c
@@ -920,7 +920,8 @@
 		pakdir(va("%s/id1", *p));
 		if(game != nil)
 			pakdir(va("%s/%s", *p, game));
-		mkpath(fsdir);
+		if(p[1] == nil)
+			mkpath(fsdir);
 	}
 }
 
--