The following are extracts from a strace of the apache process as it
attempts to locate include.xml for the two test cases.
Is axkit or libxml2 responsible for setting up the search paths for
includes?
== test1.xml strace ========================================================
...
19491 stat64("/include.xml", 0xbfffe250) = -1 ENOENT (No such file or directory)
19491 stat64("/include.xml", 0xbfffe220) = -1 ENOENT (No such file or directory)
19491 stat64("/etc/xml/catalog", 0xbfffe0a0) = -1 ENOENT (No such file or directory)
19491 stat64("/etc/xml/catalog", 0xbfffe0a0) = -1 ENOENT (No such file or directory)
19491 stat64("/etc/xml/catalog", 0xbfffe0a0) = -1 ENOENT (No such file or directory)
19491 stat64("/include.xml", 0xbfffe220) = -1 ENOENT (No such file or directory)
19491 stat64("/home/mwk/html/undue/www/include.xml", {st_mode=S_IFREG|0644,
st_size=67, ...}) = 0
19491 lstat64("/home", {st_mode=S_IFDIR|S_ISGID|0775, st_size=4096, ...}) = 0
19491 lstat64("/home/mwk", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
19491 lstat64("/home/mwk/html", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
19491 lstat64("/home/mwk/html/undue", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
19491 lstat64("/home/mwk/html/undue/www", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
19491 lstat64("/home/mwk/html/undue/www/include.xml", {st_mode=S_IFREG|0644,
st_size=67, ...}) = 0
19491 stat64("/home/mwk/html/undue/www/include.xml", {st_mode=S_IFREG|0644,
st_size=67, ...}) = 0
19491 open("/home/mwk/html/undue/www/include.xml", O_RDONLY|O_LARGEFILE) = 4
...
== test2.xml strace ========================================================
...
19491 stat64("/include.xml", 0xbfffe250) = -1 ENOENT (No such file or directory)
19491 stat64("/include.xml", 0xbfffe220) = -1 ENOENT (No such file or directory)
19491 stat64("/etc/xml/catalog", 0xbfffe0a0) = -1 ENOENT (No such file or directory)
19491 stat64("/etc/xml/catalog", 0xbfffe0a0) = -1 ENOENT (No such file or directory)
19491 stat64("/etc/xml/catalog", 0xbfffe0a0) = -1 ENOENT (No such file or directory)
19491 stat64("/include.xml", 0xbfffe220) = -1 ENOENT (No such file or directory)
19491 stat64("/include.xml", 0xbfffe180) = -1 ENOENT (No such file or directory)
19491 stat64("/include.xml", 0xbfffe180) = -1 ENOENT (No such file or directory)
19491 stat64("/include.xml", 0xbfffe180) = -1 ENOENT (No such file or directory)
...
============================================================================
Cheers,
Matt
--
Matt Kern
http://www.undue.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]