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:
Masayuki Ishikawa 2019-07-10 11:33:13 +00:00 committed by Gregory Nutt
parent bf066f11e7
commit 89d820e7d4

View File

@ -130,7 +130,7 @@ bool httpd_is_file(FAR const char *filename)
snprintf(path, CONFIG_NAME_MAX, "%s/%s",
CONFIG_NETUTILS_HTTPD_PATH, filename);
fd = open(path, "O_RDONLY");
fd = open(path, O_RDONLY);
if (-1 != fd)
{