this patch is wrong. it changes fsysversion() which leaves
t.msize uninitialized.

static
Xfid*
fsysversion(Xfid *x, Fid*)
{
        Fcall t;

        if(x->msize < 256)
                return respond(x, &t, "version: message size too small");
        if(t.msize > Maxblock)
                t.msize = Maxblock;
        messagesize = t.msize + IOHDRSZ;
        if(strncmp(x->version, "9P2000", 6) != 0)
                return respond(x, &t, "unrecognized 9P version");
        t.version = "9P2000";
        return respond(x, &t, nil);
}

--
cinap

Reply via email to