delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/08/03/03:19:32

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Wed, 3 Aug 2011 09:18:32 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: bzr completely broken?
Message-ID: <20110803071832.GG5647@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <h4upu65mnaa8pjkjpq8qv9tgcksembv2q2 AT 4ax DOT com> <a91qu6hddkpp43egork4jo0se47qinsr79 AT 4ax DOT com> <ropd375qtu182a20e29mal72omo8pslf4d AT 4ax DOT com> <4E3762DF DOT 3040601 AT cygwin DOT com> <3euf37dhcv87d2ahbsmnq0f456pkob1vvo AT 4ax DOT com> <20110802132559 DOT GA9043 AT ednor DOT casa DOT cgf DOT cx> <tv0g371iv362rtvfts32j3d4b954jn4ibv AT 4ax DOT com> <20110802144015 DOT GB8652 AT calimero DOT vinschen DOT de> <8fjg3756bfbgelfli94dmqhat97k5p5bmp AT 4ax DOT com>
MIME-Version: 1.0
In-Reply-To: <8fjg3756bfbgelfli94dmqhat97k5p5bmp@4ax.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Aug  2 15:25, Andrew Schulman wrote:
> > On Aug  2 10:07, Andrew Schulman wrote:
> > > > >> > $ rebaseall
> > > > >> > ReBaseImage (/usr/bin/cygcrypt-0.dll) failed with last error = 6
> > > [...]
> > 
> > chmod u+w /usr/bin/cygcrypt-0.dll
> > 
> > ?
> 
> Uh... yes.
> 
> Thanks.  It works now.  Although I had to get more aggressive and run
> 
>   find /usr -iname \*.dll -o -iname \*.so | xargs chmod u+w
> 
> After that, rebaseall completed successfully, and bzr now works again.
> 
> Who maintains the rebase package?  I wonder if it should automatically try to chmod u+w all of the
> files it wants to operate on-- maybe just temporarily.

Jason is the maintainer, with a bit of Chuck's and my help.

I don't think that chmod +w is a good idea in general.  I don't like
to see tools fiddeling with permissions without asking.

We're working on a new release of rebase anyway.  This new release
checks for writability and prints just a warning without stopping
dead in its track:

  /usr/bin/foo.dll: skipped because not writable

That should be ok, shouldn't it?  Otherwise, what we can do is to open
the file with FILE_FLAG_BACKUP_SEMANTICS.  This would allow you to
rebase DLLs without write permissions if you have admin privileges.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019