fix the hidden directory thing

This commit is contained in:
Ron Pedde 2006-01-12 00:36:05 +00:00
parent 01180d60f1
commit b02eed1195
1 changed files with 1 additions and 1 deletions

View File

@ -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);