From 9a6c782e3faf6225cd39f801c9cde53befe0222c Mon Sep 17 00:00:00 2001 From: probonopd Date: Sat, 16 Nov 2024 23:35:50 +0000 Subject: [PATCH] "wpa_supplicant.conf" --- src/net/ftpworker.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/net/ftpworker.cpp b/src/net/ftpworker.cpp index 0dcaa04..8856d75 100644 --- a/src/net/ftpworker.cpp +++ b/src/net/ftpworker.cpp @@ -619,7 +619,7 @@ bool CFTPWorker::Retrieve(const char* pArgs) CString Path = RealPath(pArgs); // 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."); return false; @@ -994,7 +994,7 @@ bool CFTPWorker::ListFileNames(const char* pArgs) const TDirectoryListEntry& Entry = pDirEntries[i]; if (Entry.Type == TDirectoryListEntryType::Directory) continue; - if (strcmp(Entry.Name, "/SD/wpa_supplicant.conf") == 0) + if (strcmp(Entry.Name, "wpa_supplicant.conf") == 0) { continue; }