Index: src/Command.cc =================================================================== --- src/Command.cc (revision 345) +++ src/Command.cc (working copy) @@ -862,7 +862,8 @@ const int dlen = strlen(entry->d_name); #ifdef _DIRENT_HAVE_D_TYPE - if (entry->d_type != DT_REG) continue; // not a regular file + if (entry->d_type != DT_REG && // not a regular file + entry->d_type != DT_LNK) continue; // ... or a symlink #else if (dlen == 1 && entry->d_name[0] == '.') continue; if (dlen == 2 && entry->d_name[0] == '.'