From b02eed1195792ed933db13b5e6aff1fb4a2c7175 Mon Sep 17 00:00:00 2001 From: Ron Pedde Date: Thu, 12 Jan 2006 00:36:05 +0000 Subject: [PATCH] fix the hidden directory thing --- src/mp3-scanner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mp3-scanner.c b/src/mp3-scanner.c index 2905c93f..b97a5d6e 100644 --- a/src/mp3-scanner.c +++ b/src/mp3-scanner.c @@ -318,7 +318,7 @@ int scan_path(char *path) { if(!pde) break; - if(pde->d_name[0] == '.') /* skip hidden and directories */ + if(!strcmp(pde->d_name,".") || !strcmp(pde->d_name,"..")) continue; snprintf(relative_path,PATH_MAX,"%s/%s",path,pde->d_name);