Merged in masayuki2009/nuttx.apps/fix_httpd_dirlist (pull request #184)
neutils/webserver: Fix file corruption in httpd_dirlist.c Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com> Approved-by: Gregory Nutt <gnutt@nuttx.org>
This commit is contained in:
parent
bf066f11e7
commit
89d820e7d4
@ -130,7 +130,7 @@ bool httpd_is_file(FAR const char *filename)
|
|||||||
snprintf(path, CONFIG_NAME_MAX, "%s/%s",
|
snprintf(path, CONFIG_NAME_MAX, "%s/%s",
|
||||||
CONFIG_NETUTILS_HTTPD_PATH, filename);
|
CONFIG_NETUTILS_HTTPD_PATH, filename);
|
||||||
|
|
||||||
fd = open(path, "O_RDONLY");
|
fd = open(path, O_RDONLY);
|
||||||
|
|
||||||
if (-1 != fd)
|
if (-1 != fd)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user