summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/src/9/port/chan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/9/port/chan.c b/sys/src/9/port/chan.c
index a8bd9522a..c74fb5d51 100644
--- a/sys/src/9/port/chan.c
+++ b/sys/src/9/port/chan.c
@@ -1171,7 +1171,7 @@ createdir(Chan *c, Mhead *m)
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();