Is this safe? Can you _never_ have a d_name with a leading dot, like '.hidden' ??Maybe shouldif(dir->d_name[0] == '.' && (dir->d_name[1] == '\0' || (dir->d_name[1]== '.' && dir->d_name[2] == '\0')))Admittedly I don't think it happens in the current procfs, but I'd wantto be careful regardless.