--tftp-lowercase option.

This commit is contained in:
Simon Kelley
2012-04-20 21:28:49 +01:00
parent 7a14dfebbb
commit 61ce600b20
5 changed files with 20 additions and 4 deletions

View File

@@ -345,9 +345,12 @@ void tftp_request(struct listener *listen, time_t now)
}
/* cope with backslashes from windows boxen. */
while ((p = strchr(filename, '\\')))
*p = '/';
for (p = filename; *p; p++)
if (*p == '\\')
*p = '/';
else if (option_bool(OPT_TFTP_LC))
*p = tolower(*p);
strcpy(daemon->namebuff, "/");
if (prefix)
{