[xml] Why does "-" read from stdin?
- From: Michael Day <mikeday yeslogic com>
- To: xml gnome org
- Subject: [xml] Why does "-" read from stdin?
- Date: Fri, 02 Feb 2007 13:50:55 +1100
Hi,
Why does xmlReadFile read from stdin if "-" is specified as a filename,
and is there any way to disable this behaviour?
It seems that this will create potential bugs wherever a program passes
a filename to libxml2 without checking it first; if the filename is "-"
then libxml2 will attempt to read from stdin and the program may block
indefinitely.
Best regards,
Michael
--
Print XML with Prince!
http://www.princexml.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]