diff options
| author | forsyth <forsyth@vitanuova.com> | 2009-11-19 17:08:00 +0000 |
|---|---|---|
| committer | forsyth <forsyth@vitanuova.com> | 2009-11-19 17:08:00 +0000 |
| commit | 1d6f6b43a0f31b37b3302fc0d627c904c381f3d1 (patch) | |
| tree | 29d6bf70f822302f0e46a1551f5d19990e1d6f61 /emu/port/devfs-posix.c | |
| parent | 10ed093c8a57ceaea6dd85a85cec029a04ce0e30 (diff) | |
CHANGES
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; |
