The XMLPlatformUtils::openFile function opens files with fopen and passes it "r+" string as mode argument. This makes(according to fopen(3)) it try to open file for reading and writing while it should be opened for reading only. As a result you can't work with files not owned by you which is rather common case for dtd files. Fix: Just change mode from "r+" to "r", here is the patch: How-To-Repeat: Try "SAX2Pint somefile.xml" where somefile.xml belongs to other user and has access rights rw-r--r--.
I'm sorry, I'm finding it a little bit difficult to figure out which port this PR applies to.
I'm sorry, it is textproc/xerces-c2. It seems that I hastened :-) -- Konstantin Oznobihin <bork@rsu.ru> Systems programmer and administrator Computer Center of Rostov State University.
Dear maintainer of port textproc/xerces-c2, please take a look at change proposed at: http://www.freebsd.org/cgi/query-pr.cgi?pr=59499 Do you approve or reject this change? -- Pav Lucistnik <pav@oook.cz> <pav@FreeBSD.org> What do you mean? An African or a European swallow?
State Changed From-To: open->feedback Asked maintainer about it.
Responsible Changed From-To: freebsd-ports-bugs->pav Watch.
On Fri, 2 Jan 2004, Pav Lucistnik wrote: > Dear maintainer of port textproc/xerces-c2, please take a look at change > proposed at: > > http://www.freebsd.org/cgi/query-pr.cgi?pr=59499 > > Do you approve or reject this change? looks good; is already fixed in apache cvs and 2.4 but I hadn't had the time to update the port due to kernel hacking. please commit. -- Bjoern A. Zeeb bzeeb at Zabbadoz dot NeT 56 69 73 69 74 http://www.zabbadoz.net/
State Changed From-To: feedback->closed Committed, thanks!