[pacman-dev] [PATCH] Only try to create keyring directory when root

Rémy Oudompheng remyoudompheng at gmail.com
Tue Mar 29 19:07:39 EDT 2011


On 2011/3/30 Dan McGee <dpmcgee at gmail.com> wrote:
> Sorry- I forgot to get back to you, but I thought you would pick up on
> it from the other conversation. This patch makes --help not break, but
> doesn't do it in a way I like. I have a bad taste in my mouth for all
> UID-specific workarounds in most pacman code due to this monstrosity:
> http://projects.archlinux.org/pacman.git/tree/src/pacman/util.c#n89

That's makes me remember a day when I wanted to use pacman to maintain
packages in my HOME on a foreign system. Is it desirable to get rid of
that? That's actually very strange that pacman wants to check such a
thing whereas libalpm doesn't.

Proper write permission checking in libalpm seems to be sufficient
(with good error catching in pacman).

-- 
Rémy.


More information about the pacman-dev mailing list