diff --git a/cmd/wmii/fs.c b/cmd/wmii/fs.c index 7f5a59e4..bd7ab951 100644 --- a/cmd/wmii/fs.c +++ b/cmd/wmii/fs.c @@ -492,13 +492,8 @@ fs_write(Ixp9Req *r) { return; } - if(waserror()) { - ixp_respond(r, ixp_errbuf()); - return; - } - switch(f->tab.type) { - case FsFCtags: + case FsFCtags: r->ofcall.io.count = r->ifcall.io.count; ixp_srv_data2cstring(r); client_applytags(f->p.client, r->ifcall.io.data); @@ -506,6 +501,11 @@ fs_write(Ixp9Req *r) { return; } + if(waserror()) { + ixp_respond(r, ixp_errbuf()); + return; + } + t = &actiontab[f->tab.type]; if(f->tab.type < nelem(actiontab)) { if(t->msg) {