[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnu-arch-users] Tlacontrib contribution: Alternative to .listing fi

From: John Meinel
Subject: Re: [Gnu-arch-users] Tlacontrib contribution: Alternative to .listing files
Date: Wed, 22 Sep 2004 09:08:51 -0500
User-agent: Mozilla Thunderbird 0.8 (Windows/20040913)

Jan Hudec wrote:
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


Yes, you can. It really does equivaltent of:

if expr $query_string : '.*\.listing$'; then
    ls ${query_string%.listing}
    cat ${query_string}

but it's in C, so it is faster and more secure.


I'm curious. Do you do a lot of safety checking on the input URL?
Meaning if I went to the archive and did this:


I'm not going to get the "root" listing, right?

Otherwise this seems like a very good thing.


Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]