On Mon, Aug 04, 2025 at 07:58:48AM +0000, RVP wrote: > On Mon, 4 Aug 2025, Kimmo Suominen wrote: > > <a href="/pkgin-25.5.1.tgz"> points to something that does not exist > > on the web server. > > That's just an artefact of the way I ran my tests. What actually > happens is that bozohttpd generates an index.html with only relative > links every time; while simple-http-server always generates absolute > paths (from server root) [...] > > Looks like pkg_add relies on a bozohttpd-like dir. listing. It should > do something like a basename(3) on the `href' links. Both lynx(1) and > firefox treat both link types the same.
Okay, now it does sound like a pkg_add bug: it should follow the href correctly whether it is absolute or relative. I'm running nginx and it also generates relative links (just an observation). Kind regards, + Kimmo