ramfs: fix directory check in wstat() (thanks mischief)
This commit is contained in:
parent
694597de3b
commit
7011194af1
1 changed files with 1 additions and 1 deletions
|
@ -285,7 +285,7 @@ fswstat(Req *r)
|
||||||
respond(r, Ebadoff);
|
respond(r, Ebadoff);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(!hasperm(f, u, AWRITE) || (r->d.mode & DMDIR) != 0)
|
if(!hasperm(f, u, AWRITE) || (f->mode & DMDIR) != 0)
|
||||||
goto Perm;
|
goto Perm;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue