summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/tree.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/tree.c b/apps/tree.c
index 73c75ba..0be77c3 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]=='.') ||