Comment 2 for bug 376388

Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 376388] Re: .bazaar created owned by root

On Fri, 2009-05-15 at 09:20 +0000, Thierry Carrez wrote:
> This is caused by bzr not really supporting to be run under sudo.
> In config.py:ensure_config_dir_exists it creates $HOME/.bazaar without dropping rights to the $SUDO_USER. Unfortunately the same could be said for all other config-writing functions. I'm not exactly sure where (and how) it would be best to fix that.
>
> Adding a bzr task to this bug to drag bzr developers into the
> discussion. The fix for this one could also be discussed at the
> bzr/etckeeper session at UDS (server track).

Patches appreciated :) certainly sounds like a valid use case. Its a
shame that we'd need to special case stuff.

-Rob