Using bzr in a centralized, controlled fashion

Michael B. Trausch mbt at zest.trausch.us
Mon Oct 26 09:11:51 GMT 2009


On Mon, 2009-10-26 at 17:11 +0900, David Muir wrote:
> Hmm, you might be hitting this bug:
> https://bugs.launchpad.net/bzr/+bug/50568
> 
> That's about as far as my knowledge goes, so I'm hoping someone else
> can step in and give a hand.

I did find a workaround for the time being:

 $ sudo mv /usr/bin/bzr /usr/bin/bzr.real
 $ sudo cat > /usr/bin/bzr
#!/bin/bash
umask 012
exec bzr "$@"
^D

That sets the umask properly; it just means sftp can't be used, it'd
seem.

There's a more proper way to do that on my system (using dpkg-divert or
something; I have to go hunting for that tomorrow, I can not keep my
eyes open).

	--- Mike

> Cheers,
> David
> 
> Michael B. Trausch wrote: 
> > On Mon, 2009-10-26 at 09:09 +0900, David Muir wrote:
> >   
> > > I've written up an example of how you can do it here with unix users
> > > and 
> > > groups:
> > > 
> > > https://answers.launchpad.net/bzr/+question/50139 
> > >     
> > 
> > That's cool, but there's a hangup that's not working for me.  bzr does
> > not honor the umask setting from /etc/profile when invoked this way (and
> > there is no override in the user's profile/bashrc).  When I push a
> > branch, it's writable by my user (mbt) but not anyone in the bzr
> > repository group (simply "bzr").
> > 
> > I'm not sure why this is, though.  It'd be perfect if it'd honor the
> > umask.
> > 
> > 	--- Mike
> > 
> >   
> 


-- 
Blog:  http://mike.trausch.us/blog/
Misc. Software:  http://mike.trausch.us/software/

“The greater danger for most of us lies not in setting our aim too
high and falling short; but in setting our aim too low, and achieving
our mark.” —Michelangelo



More information about the bazaar mailing list