(apro) [!_WIN32]: Silently ignore directory entries starting with '.'.
Before, apro() logged complaints about . and .. not being regular files.
This commit is contained in:
parent
7a2aad83cb
commit
dbfd0c5aa3
1 changed files with 3 additions and 1 deletions
|
@ -210,6 +210,8 @@ apro(void)
|
||||||
*/
|
*/
|
||||||
nf = nhf = nl = nhl = 0;
|
nf = nhf = nl = nhl = 0;
|
||||||
while ((dp = readdir(info_dp)) != 0) {
|
while ((dp = readdir(info_dp)) != 0) {
|
||||||
|
if (dp->d_name[0] == '.')
|
||||||
|
continue;
|
||||||
snprintf(filename, sizeof(filename), "%s/%s", infodir,
|
snprintf(filename, sizeof(filename), "%s/%s", infodir,
|
||||||
dp->d_name);
|
dp->d_name);
|
||||||
fp = fopen(filename, "r");
|
fp = fopen(filename, "r");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue