(apro) [!_WIN32]: Silently ignore directory entries starting with '.'.

Before, apro() logged complaints about . and .. not being regular
files.
This commit is contained in:
Markus Armbruster 2006-09-23 15:00:01 +00:00
parent 7a2aad83cb
commit dbfd0c5aa3

View file

@ -210,8 +210,10 @@ apro(void)
*/
nf = nhf = nl = nhl = 0;
while ((dp = readdir(info_dp)) != 0) {
if (dp->d_name[0] == '.')
continue;
snprintf(filename, sizeof(filename), "%s/%s", infodir,
dp->d_name);
dp->d_name);
fp = fopen(filename, "r");
alreadyhit = 0;
nll = nlhl = 0;