[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r8489 - libmicrohttpd/src/examples
From: |
gnunet |
Subject: |
[GNUnet-SVN] r8489 - libmicrohttpd/src/examples |
Date: |
Fri, 5 Jun 2009 10:40:18 -0600 |
Author: grothoff
Date: 2009-06-05 10:40:18 -0600 (Fri, 05 Jun 2009)
New Revision: 8489
Modified:
libmicrohttpd/src/examples/fileserver_example_dirs.c
Log:
hide
Modified: libmicrohttpd/src/examples/fileserver_example_dirs.c
===================================================================
--- libmicrohttpd/src/examples/fileserver_example_dirs.c 2009-06-05
16:36:11 UTC (rev 8488)
+++ libmicrohttpd/src/examples/fileserver_example_dirs.c 2009-06-05
16:40:18 UTC (rev 8489)
@@ -46,9 +46,12 @@
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,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r8489 - libmicrohttpd/src/examples,
gnunet <=