[cpp-sp] branch main updated: SSPCPP-916 - Recreating MDQ cache directory fails with warning

Scott Cantor cantor.2 at osu.edu
Thu Dec 10 14:48:15 UTC 2020


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

scantor 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=6d5430327078cf2b7cc847146e89710c1bd5d80d

The following commit(s) were added to refs/heads/main by this push:
       new  6d543032  SSPCPP-916 - Recreating MDQ cache directory fails with warning
6d543032 is described below

commit 6d5430327078cf2b7cc847146e89710c1bd5d80d
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Thu Dec 10 09:47:07 2020 -0500

    SSPCPP-916 - Recreating MDQ cache directory fails with warning
    
    https://issues.shibboleth.net/jira/browse/SSPCPP-916
---
 shibsp/metadata/DynamicMetadataProvider.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/shibsp/metadata/DynamicMetadataProvider.cpp b/shibsp/metadata/DynamicMetadataProvider.cpp
index 07f979dc..e5e69660 100644
--- a/shibsp/metadata/DynamicMetadataProvider.cpp
+++ b/shibsp/metadata/DynamicMetadataProvider.cpp
@@ -205,7 +205,7 @@ void DynamicMetadataProvider::init()
     if (!CreateDirectoryA(m_cacheDir.c_str(), NULL) && GetLastError() != ERROR_ALREADY_EXISTS)
         m_log.warn("could not create cache directory %s (%ld)", m_cacheDir.c_str(), GetLastError());
 #else
-    if (mkdir(m_cacheDir.c_str(), S_IRWXU))
+    if (mkdir(m_cacheDir.c_str(), S_IRWXU) && errno != EEXIST)
         m_log.warn("could not create cache directory %s (%d)", m_cacheDir.c_str(), errno);
 #endif
     if (m_backgroundInit) {

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


More information about the commits mailing list