[cpp-sp] 02/02: Add call to set file mod time after a load.
Scott Cantor
cantor.2 at osu.edu
Thu Dec 19 01:21:22 UTC 2024
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=1f81a425b6b4d81d60d2371cf9e897387c66f1f1
commit 1f81a425b6b4d81d60d2371cf9e897387c66f1f1
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Wed Dec 18 20:21:06 2024 -0500
Add call to set file mod time after a load.
---
shibsp/impl/XMLAccessControl.cpp | 1 +
shibsp/impl/XMLRequestMapper.cpp | 1 +
2 files changed, 2 insertions(+)
diff --git a/shibsp/impl/XMLAccessControl.cpp b/shibsp/impl/XMLAccessControl.cpp
index 104f2985..b168466a 100644
--- a/shibsp/impl/XMLAccessControl.cpp
+++ b/shibsp/impl/XMLAccessControl.cpp
@@ -418,6 +418,7 @@ pair<bool,ptree*> XMLAccessControl::load() noexcept
// Perform the swap inside a lock.
unique_lock<ReloadableXMLFile> locker(*this);
m_rootAuthz.swap(authz);
+ updateModificationTime();
return make_pair(false, raw.second);
}
catch (const exception& e) {
diff --git a/shibsp/impl/XMLRequestMapper.cpp b/shibsp/impl/XMLRequestMapper.cpp
index 9416e876..4349c2e0 100644
--- a/shibsp/impl/XMLRequestMapper.cpp
+++ b/shibsp/impl/XMLRequestMapper.cpp
@@ -664,6 +664,7 @@ pair<bool,ptree*> XMLRequestMapper::load() noexcept
// Perform the swap inside a lock.
unique_lock<ReloadableXMLFile> locker(*this);
m_impl.swap(impl);
+ updateModificationTime();
return make_pair(false, raw.second);
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list