Commit:35e90d35971631b97c76cb3a28ae222f8e6ba79b (browse)
Parent:e3314aec0db093f27e1e29bcc3aa627fb1533cbb
Author:qwx <qwx@sciops.net>
Date:Tue May 5 20:50:01 CES 2020
Message:
fs: mountid not always positive

fs.c => fs.c
@@ -1309,7 +1309,7 @@
 	char *e;
 
 	rfork(RFNAMEG);
-	if(bind(".", dir, MBEFORE|MCREATE) < 0 || chdir(dir) < 0)
+	if(bind(".", dir, MBEFORE|MCREATE) == -1 || chdir(dir) < 0)
 		fprint(2, "dat: %r\n");
 	e = ext;
 	loadscr();