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