X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.8 required=5.0	tests=AWL,BAYES_00,RP_MATCHES_RCVD,TW_BZ
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
Subject: Re: bzr completely broken?
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>	<20110803071832.GG5647@calimero.vinschen.de>
From: ht@inf.ed.ac.uk (Henry S. Thompson)
Date: Wed, 03 Aug 2011 10:48:25 +0100
In-Reply-To: <20110803071832.GG5647@calimero.vinschen.de> (Corinna Vinschen's message of "Wed, 3 Aug 2011 09:18:32 +0200")
Message-ID: <f5blivabzbq.fsf@calexico.inf.ed.ac.uk>
User-Agent: Gnus/5.1008 (Gnus v5.10.8) XEmacs/21.4.21 (linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Edinburgh-Scanned: at treacle.ucs.ed.ac.uk    with MIMEDefang 2.60, Sophie, Sophos Anti-Virus, Clam AntiVirus
X-IsSubscribed: yes
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

Corinna Vinschen writes:

> . . .

> 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

> 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.

A combination of the two would be best, I think.  That is, try
FILE_FLAG_BACKUP_SEMANTICS, so for Admins it will work, and if _that_
fails print the message.

Thanks,

ht
-- 
       Henry S. Thompson, School of Informatics, University of Edinburgh
      10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND -- (44) 131 650-4440
                Fax: (44) 131 651-1426, e-mail: ht@inf.ed.ac.uk
                       URL: http://www.ltg.ed.ac.uk/~ht/
 [mail from me _always_ has a .sig like this -- mail without it is forged spam]

--
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

