diff options
Diffstat (limited to 'emu/port/devfs-posix.c')
| -rw-r--r-- | emu/port/devfs-posix.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/emu/port/devfs-posix.c b/emu/port/devfs-posix.c index c80406cb..1ce6af40 100644 --- a/emu/port/devfs-posix.c +++ b/emu/port/devfs-posix.c @@ -775,7 +775,12 @@ fsdirread(Chan *c, uchar *va, int count, vlong offset) continue; } qlock(&idl); + if(waserror()){ + qunlock(&idl); + nexterror(); + } r = fsdirconv(c, de->d_name, &stbuf, slop, sizeof(slop), 1); + poperror(); qunlock(&idl); if(r <= 0) { FS(c)->offset = n; |
