Damn. THTTPD will not yet run with binfs because it wants an index.html file. THTTPD does support indexing directories if CONFIG_THTTPD_GENERATE_INDICES=y, but there are some compilation issues that need to be fixed when that option is selected.
This commit is contained in:
parent
15fcf746be
commit
b3780a071c
@ -88,7 +88,7 @@
|
|||||||
|
|
||||||
#define NAMLEN(dirent) strlen((dirent)->d_name)
|
#define NAMLEN(dirent) strlen((dirent)->d_name)
|
||||||
|
|
||||||
extern char *crypt(const char *key, const char *setting);
|
extern CODE char *crypt(const char *key, const char *setting);
|
||||||
|
|
||||||
#ifndef MAX
|
#ifndef MAX
|
||||||
# define MAX(a,b) ((a) > (b) ? (a) : (b))
|
# define MAX(a,b) ((a) > (b) ? (a) : (b))
|
||||||
@ -1563,7 +1563,11 @@ static void ls_child(int argc, char **argv)
|
|||||||
struct stat lsb;
|
struct stat lsb;
|
||||||
char modestr[20];
|
char modestr[20];
|
||||||
char *linkprefix;
|
char *linkprefix;
|
||||||
|
#if 0
|
||||||
char link[MAXPATHLEN + 1];
|
char link[MAXPATHLEN + 1];
|
||||||
|
#else
|
||||||
|
char link[1];
|
||||||
|
#endif
|
||||||
char *fileclass;
|
char *fileclass;
|
||||||
time_t now;
|
time_t now;
|
||||||
char *timestr;
|
char *timestr;
|
||||||
@ -1640,6 +1644,7 @@ static void ls_child(int argc, char **argv)
|
|||||||
nameptrs[nnames][namlen] = '\0';
|
nameptrs[nnames][namlen] = '\0';
|
||||||
++nnames;
|
++nnames;
|
||||||
}
|
}
|
||||||
|
|
||||||
closedir(dirp);
|
closedir(dirp);
|
||||||
|
|
||||||
/* Sort the names. */
|
/* Sort the names. */
|
||||||
@ -1818,7 +1823,6 @@ static int ls(httpd_conn *hc)
|
|||||||
struct stat lsb;
|
struct stat lsb;
|
||||||
char modestr[20];
|
char modestr[20];
|
||||||
char *linkprefix;
|
char *linkprefix;
|
||||||
char link[MAXPATHLEN + 1];
|
|
||||||
char *fileclass;
|
char *fileclass;
|
||||||
time_t now;
|
time_t now;
|
||||||
char *timestr;
|
char *timestr;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user