From 91e2694d7c80d02e566613db6e676f3bbf1f9695 Mon Sep 17 00:00:00 2001 From: Robert Hak Date: Fri, 6 Sep 2002 04:59:23 +0000 Subject: Bjorn (Fisher)'s patch to skip the FAT volume ID being shown. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2194 a1c6a512-1295-4272-9138-f99709370657 --- apps/tree.c | 6 ++++++ 1 file changed, 6 insertions(+) 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]=='.') || -- cgit v1.2.3