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

