diff --git a/apps/tree.c b/apps/tree.c index 73c75ba606..0be77c3b9c 100644 --- a/apps/tree.c +++ b/apps/tree.c @@ -224,6 +224,12 @@ static int showdir(char *path, int start) continue; } + /* Skip FAT volume ID */ + if (entry->attribute & ATTR_VOLUME_ID) { + i--; + continue; + } + /* Skip dotfiles if set to skip them */ if (!global_settings.show_hidden_files && ((entry->d_name[0]=='.') ||