From dbfd0c5aa3cf50420cd7ca81ef7cff05bb35b963 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sat, 23 Sep 2006 15:00:01 +0000 Subject: [PATCH] (apro) [!_WIN32]: Silently ignore directory entries starting with '.'. Before, apro() logged complaints about . and .. not being regular files. --- src/lib/commands/info.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/commands/info.c b/src/lib/commands/info.c index ee954ff0..4597013c 100644 --- a/src/lib/commands/info.c +++ b/src/lib/commands/info.c @@ -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;