shithub: wl3d

Download patch

ref: 0074a610fdaf9ee10107c1ac9505ab017b8d9559
parent: f7d52d0cc2c017d4feb2ea916a6afa8426c97bdc
author: qwx <>
date: Thu May 18 13:34:47 EDT 2017

fs: try cwd if datadir is inaccessible

--- a/fs.c
+++ b/fs.c
@@ -1083,7 +1083,7 @@
 
 	rfork(RFNAMEG);
 	if(bind(".", dir, MBEFORE|MCREATE) < 0 || chdir(dir) < 0)
-		sysfatal("dat: %r\n");
+		fprint(2, "dat: %r\n");
 	e = ext;
 	loadscr();
 	ext = e;