shithub: riscv

Download patch

ref: 983bd80477a6ed52cdf7f15191ef70bb5a6ac24e
parent: 8e11ff283f1e7c36b23e6e52c2ab0ca12a7713f9
author: cinap_lenrek <[email protected]>
date: Sat Jul 14 19:07:18 EDT 2012

upas/fs: ministry of silly walks struck again

--- a/sys/src/cmd/upas/fs/fs.c
+++ b/sys/src/cmd/upas/fs/fs.c
@@ -1227,6 +1227,8 @@
 				break;
 			}
 
+			if(mb->d == nil || mb->d->name == nil)
+				continue;
 			d = dirstat(mb->path);
 			if(d == nil)
 				continue;