Vista problem / heuristic status elevation / manifests

Corinna Vinschen
Tue Sep 28 12:06:00 GMT 2010

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:
> A minimal example is:
> echo "int main(){ } " >; gcc -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 Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

Problem reports:
Unsubscribe info:

More information about the Cygwin mailing list