|
|
@ -619,7 +619,7 @@ bool CFTPWorker::Retrieve(const char* pArgs) |
|
|
|
CString Path = RealPath(pArgs); |
|
|
|
CString Path = RealPath(pArgs); |
|
|
|
|
|
|
|
|
|
|
|
// If the filename is "wpa_supplicant.conf", don't allow it to be retrieved
|
|
|
|
// If the filename is "wpa_supplicant.conf", don't allow it to be retrieved
|
|
|
|
if (strcmp(Path, "/SD/wpa_supplicant.conf") == 0) |
|
|
|
if (strcmp(Path, "wpa_supplicant.conf") == 0) |
|
|
|
{ |
|
|
|
{ |
|
|
|
SendStatus(TFTPStatus::FileActionNotTaken, "File action not taken."); |
|
|
|
SendStatus(TFTPStatus::FileActionNotTaken, "File action not taken."); |
|
|
|
return false; |
|
|
|
return false; |
|
|
@ -994,7 +994,7 @@ bool CFTPWorker::ListFileNames(const char* pArgs) |
|
|
|
const TDirectoryListEntry& Entry = pDirEntries[i]; |
|
|
|
const TDirectoryListEntry& Entry = pDirEntries[i]; |
|
|
|
if (Entry.Type == TDirectoryListEntryType::Directory) |
|
|
|
if (Entry.Type == TDirectoryListEntryType::Directory) |
|
|
|
continue; |
|
|
|
continue; |
|
|
|
if (strcmp(Entry.Name, "/SD/wpa_supplicant.conf") == 0) |
|
|
|
if (strcmp(Entry.Name, "wpa_supplicant.conf") == 0) |
|
|
|
{ |
|
|
|
{ |
|
|
|
continue; |
|
|
|
continue; |
|
|
|
} |
|
|
|
} |
|
|
|