GNOME Bugzilla – Bug 352965
xsltproc doesn't return an error when failing to write output file
Last modified: 2007-01-11 19:15:28 UTC
Please describe the problem: When there is a problem while writing the output file (out of space, permission denied, whatever), xsltproc doesn't return any error code. Steps to reproduce: 1. run xsltproc -o /nonexistingdir/output.xml anxsl.xsl anxml.xml 2. echo $? Actual results: the value returned is 0 Expected results: we'd expect some error code Does this happen every time? Other information: I am going to attach a patch to introduce error code 11 for output error.
Created attachment 71646 [details] [review] Patch for the issue The documentation is also updated accordlingly
Note that 2 kinds of error bring an error type 9, which is "Internal processing error", but should return this new type 11 : - set the output file to somewhere you can't create directories (like /test/test while not root ; /test gives error 11) - some write error (out of space, etc.) when writing with the <xsl:document/> element.
hello ?
implemented in SVN, with minor enhancements.