"GOT", but the "O" is a cute, smiling pufferfish. Index | Thread | Search

From:
Alisdair MacLeod <got@alisdairmacleod.co.uk>
Subject:
Packfile permissions
To:
gameoftrees@openbsd.org
Date:
Wed, 28 Oct 2020 08:48:59 +0000

Download raw body.

Thread
I've just been trying out gotweb and noticed that after a `got fetch` 
the repository is no longer accessible, with the message:

Error: open: /got/public/repo/objects/pack/pack-<snip>.idx: Permission 
denied

Diving in it looks like the packfiles are created with mktemp so have 
the mode 0600 set rather than GOT_DEFAULT_FILE_MODE and so are not 
readable by the httpd server user.

Is this on purpose? If not I would be happy to put together a patch to 
apply GOT_DEFAULT_FILE_MODE, probably just after the rename from 
tmppackpath/tmpidxpath to packpath/idxpath in lib/fetch.c?