X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Tue, 28 Sep 2010 10:14:10 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: Vista problem / heuristic status elevation / manifests Message-ID: <20100928081410.GB6694@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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 Sep 27 11:27, Daniel Povey wrote: > When running cygwin on Windows 7, if you compile programs with names > that include "update" and "install" and other keywords, they won't > execute. It seems to relate to heuristic privelege elevation: > > http://blogs.msdn.com/b/onoj/archive/2007/04/20/windows-vista-uac-and-installer-detection.aspx > > A minimal example is: > > echo "int main(){ } " > tmp.cc; gcc tmp.cc -o update; ./update > > [will get some kind of access denied message] > > The way to fix this seems to be to embed a manifest, but gcc is not > doing this by default. Does anyone know if it's possible to patch > Cygwin to get around this issue, or if there is a user-level fix or > workaround? This is not a Cygwin problem, but a UAC "feature". Cygwin is a user space DLL. We can't do what the OS doesn't allow. The solutions and workarounds are not diferent from other products. You either distribute the manifest file alongside your executable, or you switch off the feature in the "Local Security Policy" MMC-Snapin locally. 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