Skip to content
Snippets Groups Projects
Commit 275133b2 authored by patacongo's avatar patacongo
Browse files

Continued THTTPD debug

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2023 42af7a65-404d-4744-a932-0658087f49c3
parent 8ec0fc92
No related branches found
No related tags found
No related merge requests found
......@@ -89,11 +89,13 @@ static inline int statpsuedo(FAR struct inode *inode, FAR struct stat *buf)
}
else
{
/* If it has no operations, then it must just be a intermeidate
/* If it has no operations, then it must just be a intermediate
* node in the inode tree. It is something like a directory.
* We'll say that all psuedo-directories are read-able but not
* write-able.
*/
buf->st_mode |= S_IFDIR;
buf->st_mode |= S_IFDIR|S_IROTH|S_IRGRP|S_IRUSR;
}
return OK;
......@@ -108,7 +110,7 @@ static inline int statroot(FAR struct stat *buf)
/* There is no inode associated with the fake root directory */
memset(buf, 0, sizeof(struct stat) );
buf->st_mode = S_IFDIR;
buf->st_mode = S_IFDIR|S_IROTH|S_IRGRP|S_IRUSR;
return OK;
}
......
This diff is collapsed.
......@@ -45,6 +45,7 @@
#include <string.h>
#include <ctype.h>
#include <time.h>
#include <debug.h>
#include "tdate_parse.h"
......@@ -170,6 +171,7 @@ static int scan_mon(char *str_mon, long *tm_monP)
time_t tdate_parse(char *str)
{
#if 0 // REVISIT -- doesn't work
struct tm tm;
char *cp;
char str_mon[32];
......@@ -184,7 +186,10 @@ time_t tdate_parse(char *str)
long tm_wday;
#endif
nvdbg("str: \"%s\"\n", str);
/* Initialize. */
(void)memset((char *)&tm, 0, sizeof(struct tm));
/* Skip initial whitespace ourselves - sscanf is clumsy at this. */
......@@ -315,5 +320,8 @@ time_t tdate_parse(char *str)
}
return mktime(&tm);
#else
return 0; // for now
#endif
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment