summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--eio.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/eio.c b/eio.c
index f4728a7..41561d3 100644
--- a/eio.c
+++ b/eio.c
@@ -1063,6 +1063,8 @@ eio__scandir (eio_req *req, etp_worker *self)
eio_dirent *ent = dents + dentoffs;
eio_dirent *dir = dents;
+ /* now move dirs to the front, and non-dirs to the back */
+ /* by walkign from both sides and swapping if necessary */
while (ent > dir)
{
if (dir->type == DT_DIR)