summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root>2009-06-06 20:13:46 +0000
committerroot <root>2009-06-06 20:13:46 +0000
commite4d53612e13dc9aae6ac549059f3ffc98c866f34 (patch)
tree2292085420008ea6cb6fec4894a8e8b8693ebf01
parent5fada89f0fcdcacfb7db5d25713b77782b7a485f (diff)
*** empty log message ***rel-3_2
-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)