Comment 18 for bug 376388

Revision history for this message
Vincent Ladeuil (vila) wrote : Re: [Bug 376388] Re: ~/.bazaar created owned by root (when run under sudo)

<snip/>

    > btw I think this may vary between unixes.

I did test with FreeBSD and OSX and got the same results, I
mentioned the explanation for Linux because that was the only one
I cared to find but I've seen some mentions about a sysctl
variable for them that control this precise aspect and the
default value also forbids chown for non-root users.

An alternative solution may be to recognize we are working as
root and just use setuid for the relevant operations or something ?