libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 9c76dc149d951beae1da7f5c8a4ceb7a3e7550f7
parent 4a84a2c7cb6aafe5426aaae686183c82b0070233
Author: Christian Grothoff <christian@grothoff.org>
Date:   Fri,  5 Jun 2009 16:40:18 +0000

hide

Diffstat:
Msrc/examples/fileserver_example_dirs.c | 9++++++---
1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/examples/fileserver_example_dirs.c b/src/examples/fileserver_example_dirs.c @@ -46,9 +46,12 @@ dir_reader (void *cls, uint64_t pos, char *buf, int max) struct dirent *e; if (max < 512) return 0; - e = readdir (cls); - if (e == NULL) - return -1; + do + { + e = readdir (cls); + if (e == NULL) + return -1; + } while (e->d_name[0] == '.'); return snprintf (buf, max, "<a href=\"/%s\">%s</a><br>", e->d_name,