[cpp-sp] 02/04: Pin Win32 directory walking code to 8 bit characters

Rod Widdowson rdw at steadingsoftware.com
Mon Jun 23 13:40:53 UTC 2025


This is an automated email from the git hooks/post-receive script.

rdw pushed a commit to branch main
in repository cpp-sp.

View the commit online:
http://git.shibboleth.net/view/?p=cpp-sp.git;a=commit;h=3df8cb7e30c1123ca5498632bf5298c5787936b1

commit 3df8cb7e30c1123ca5498632bf5298c5787936b1
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Mon Jun 23 14:29:22 2025 +0100

    Pin Win32 directory walking code to 8 bit characters
---
 shibsp/util/DirectoryWalker.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/shibsp/util/DirectoryWalker.cpp b/shibsp/util/DirectoryWalker.cpp
index eda12b8a..8ee56f5a 100644
--- a/shibsp/util/DirectoryWalker.cpp
+++ b/shibsp/util/DirectoryWalker.cpp
@@ -59,8 +59,8 @@ void DirectoryWalker::_walk(
         searchpath += endsWith;
     m_log.debug("searching path (%s)", searchpath.c_str());
 
-    WIN32_FIND_DATA f;
-    HANDLE h = FindFirstFile(searchpath.c_str(), &f);
+    WIN32_FIND_DATAA f;
+    HANDLE h = FindFirstFileA(searchpath.c_str(), &f);
     if (h == INVALID_HANDLE_VALUE) {
         if (GetLastError() != ERROR_FILE_NOT_FOUND)
             m_log.warn("Unable to open directory (%s)", path);
@@ -92,7 +92,7 @@ void DirectoryWalker::_walk(
                 m_log.warn("unable to access (%s)", fullname.c_str());
             }
         }
-    } while (FindNextFile(h, &f));
+    } while (FindNextFileA(h, &f));
     FindClose(h);
 #else
     DIR* d = opendir(path);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list