--tftp-lowercase option.

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

No files matched your search

+6 -3
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)
{