This commit is contained in:
Christian Grothoff committed 2009-06-05 16:40:18 +00:00
1 parent 4a84a2c7cb
commit 9c76dc149d
1 file changed
+6 -3
+6 -3
View File
@@ -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,