X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.2 required=5.0	tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Reply-To: dpovey@gmail.com
Date: Mon, 27 Sep 2010 11:27:06 -0700
Message-ID: <AANLkTikwzVbE1LKy-mx7YJe59WQGTPr5yqUi+viUbPty@mail.gmail.com>
Subject: Vista problem / heuristic status elevation / manifests
From: Daniel Povey <dpovey@gmail.com>
To: cygwin@cygwin.com
Content-Type: text/plain; charset=ISO-8859-1
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.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

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?

Please cc me as I am not on the list.

Dan

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

