fixed a bug on dir creation caused with 9p2000.ko

This commit is contained in:
Anselm R. Garbe 2006-05-17 16:47:26 +02:00
parent 7ae7fa8759
commit 942904f7f5
1 changed files with 2 additions and 1 deletions

View File

@ -1541,10 +1541,11 @@ static char *
xclunk(IXPConn *c, Fcall *fcall)
{
IXPMap *m = ixp_server_fid2map(c, fcall->fid);
unsigned char type = unpack_type(m->wqid[m->sel].path);
unsigned char type;
if(!m)
return Enofile;
type = unpack_type(m->wqid[m->sel].path);
if(type == FsFkeys)
update_keys();
else if(type == FsFrules)