On Wed, Sep 22, 2004 at 13:36:02 +0200, Johannes Berg wrote:
Few days ago it was suggested, that to avoid problems with stale
.listing files, the archive could be accessed via a cgi script, that
would create them on the fly and just cat everything else. So, here is
such a script:
Cool. Does this work with multiple archives, that is, can I put it into a
directory where multiple archives reside and then tell arch to access the
archives as
http://uri-to-archives/address@hidden/
?
Yes, you can. It really does equivaltent of:
if expr $query_string : '.*\.listing$'; then
ls ${query_string%.listing}
else
cat ${query_string}
fi
but it's in C, so it is faster and more secure.