mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-10-01 04:03:18 +03:00
hide
This commit is contained in:
1 parent
4a84a2c7cb
commit
9c76dc149d
1 file changed
+6
-3
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user