the code in source/test/os2_delete.c is duplicated and will never compile. Thus, the "broken readdir()" detection itself is broken.
I'm using samba 3.0.28 and conforming this bug (bug?)... Maybe deleting the duplicated codes is the simplest solution? Am I correct? if so... I will try to motify it and provide a patch for this bug... Regard by Luen-Yung
This code is now tested and so shown to compile. Fixed sometime before: commit 8f153c6128dd15fb132d8ddb1752e793bd6a5985 Author: Stefan Metzmacher <metze@samba.org> Date: Mon Sep 18 22:49:20 2006 +0000 r18644: bring in libreplace in lib/replace metze (This used to be commit 596cbe73dd268742acf456fccd8a234376fb0c97)