From 1d6f6b43a0f31b37b3302fc0d627c904c381f3d1 Mon Sep 17 00:00:00 2001 From: forsyth Date: Thu, 19 Nov 2009 17:08:00 +0000 Subject: CHANGES --- emu/port/devfs-posix.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'emu/port/devfs-posix.c') 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; -- cgit v1.2.3