kern: do not read wdir size on Broken processes

This commit is contained in:
Giacomo Tesio 2017-12-13 21:56:16 +01:00
parent e0b8a369d0
commit c48d0e46ec
1 changed files with 2 additions and 1 deletions

View File

@ -249,6 +249,7 @@ procgen(Chan *c, char *name, Dirtab *tab, int _1, int s, Dir *dp)
/* file length might be relevant to the caller to
* malloc enough space in the buffer
*/
if(p->dot)
len = 1 + jehanne_strlen(p->dot->path->s);
break;
}