id summary reporter owner description type status milestone component version severity resolution keywords cc 257 filesystem::directory_iterator returns incorrect listing s-a-t-a-n beman_dawes "{{{ directory_iterator doesn't work correctly under debian linux (sarge/testing). Returns an invalid iterator value, which can cause a segmentation-fault, and drops the last item from the resulting listing. path dir = ""my_dir""; if ( exists(dir) || !is_directory(dir) ) return; directory_iterator itr(dir), end; while ( itr != end ) { const path &p = *itr++; //-- do something with it } When I had a directory with only one file, no actual filenames were returned. When calling methods such as leaf() on const path &p, it would cause a seg-fault. }}}" Bugs closed None None Works For Me