projects
/
shibboleth
/
cpp-xmltooling.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
fcccfe8
)
https://issues.shibboleth.net/jira/browse/CPPXT-67
1.4
author
Scott Cantor
<cantor.2@osu.edu>
Mon, 6 Dec 2010 15:35:39 +0000
(15:35 +0000)
committer
Scott Cantor
<cantor.2@osu.edu>
Mon, 6 Dec 2010 15:35:39 +0000
(15:35 +0000)
xmltooling/util/ReloadableXMLFile.cpp
patch
|
blob
|
history
diff --git
a/xmltooling/util/ReloadableXMLFile.cpp
b/xmltooling/util/ReloadableXMLFile.cpp
index
ae5f5be
..
b6be0fe
100644
(file)
--- a/
xmltooling/util/ReloadableXMLFile.cpp
+++ b/
xmltooling/util/ReloadableXMLFile.cpp
@@
-193,6
+193,11
@@
ReloadableXMLFile::ReloadableXMLFile(const DOMElement* e, Category& log, bool st
throw IOException("Unable to access local file ($1)", params(1,m_source.c_str()));
m_lock = RWLock::create();
}
+ FILE* cfile = fopen(m_source.c_str(), "r");
+ if (cfile)
+ fclose(cfile);
+ else
+ throw IOException("Unable to access local file ($1)", params(1,m_source.c_str()));
log.debug("using local resource (%s), will %smonitor for changes", m_source.c_str(), m_lock ? "" : "not ");
}
else {