ref: 0f9af22781729be05f3667cd6bafe68c0f226fef
parent: 44d916b3f72259f3599bb8404994026417060c4f
author: cinap_lenrek <cinap_lenrek@gmx.de>
date: Wed Oct 30 17:24:44 EDT 2013
fix devshr related panic caused by Mount.to being nil (thanks mischief!) the shr mount is linked into the Mhead with m->to initially nil. only after the the server has been attached is m->to set. just check for it in createdir().
--- a/sys/src/9/port/chan.c
+++ b/sys/src/9/port/chan.c
@@ -1171,7 +1171,7 @@
nexterror();
}
for(f = m->mount; f; f = f->next){- if(f->mflag&MCREATE){+ if(f->to != nil && (f->mflag&MCREATE) != 0){nc = cclone(f->to);
runlock(&m->lock);
poperror();
--
⑨