On Sun, Sep 26, 2010 at 19:42, Father Chrysostomos via RT <perlbug-followup@perl.org> wrote: > On Tue Sep 21 10:59:20 2010, jdhedden wrote: >> This patch is written to rely on dirent->d_namlen which doesn't always >> exist. (I tried it on Cygwin and got build failures). I tried >> replacing occurrences of "dirent->d_namlen" with >> "strlen(dirent->d_name)+1", and it built and tested successfully. > > Why +1? d_namlen does not include the null. > > Does this new patch work for you? Yes, your new patch compiles and tests successfully.Thread Previous | Thread Next