OmegaPhil:
> ' rdu[rdu_cur++] =3D p;' is failing as rdu is NULL.
Thanx for debugging.
Now I can understand the bug.
libau forgot supporting a simple opendir + closedir case (no readdir).
Here is a patch for you. It will be released on next Monday.
J. R. Okajima
diff --git a/libau/rdu_lib.c b/libau/rdu_lib.c
index 81b2aad..59bd334 100644
--- a/libau/rdu_lib.c
+++ b/libau/rdu_lib.c
@@ -144,11 +144,12 @@ struct rdu *rdu_buf_lock(int fd)
struct rdu *p;
int i;
- assert(rdu);
assert(fd >= 0);
p = NULL;
rdu_lib_lock();
+ if (!rdu)
+ goto out;
for (i = 0; i < rdu_cur; i++)
if (rdu[i] && rdu[i]->fd == fd) {
p = rdu[i];
------------------------------------------------------------------------------