X-Spam-Check-By: sourceware.org Date: Fri, 15 Dec 2006 10:25:58 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: Vista & coreutils (or any other package) Message-ID: <20061215092558.GB32262@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20061214152631 DOT GK9829 AT calimero DOT vinschen DOT de> <813e5f920612141414xa7e256aob609e640e446043f AT mail DOT gmail DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <813e5f920612141414xa7e256aob609e640e446043f@mail.gmail.com> User-Agent: Mutt/1.4.2.2i 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 Dec 15 09:14, Hugh McMaster wrote: > Hi Corinna, > > Does the same result occur when you run 'install' from the command > terminal in Vista, after adding Cygwin's 'bin' location to PATH? I though that's clear from the aforementioned thread in the Microsoft forum. Cmd.exe behaves as the Explorer GUI, apparently like this: When CreateProcess results in error 740, it restarts the application using ShellExecute with the "runas" attribute. What happens next depends on your user state and the UAC settings in the security policy. For a standard user either a dialog asking for admin username and password pops up, or the access is simply denied. For an admin user, either a dialog pops up asking for consent, or the application will run automatically. Either way, this results in popping up a new console window in which the application in question actually runs. ShellExecute is also a simplified API which does not allow to use a couple of the mechanisms available in CreateProcess. In other words, using ShellExecute breaks the connection between Cygwin parent and Cygwin child. Use your imagination how it looks like to run a `make install' with 20 or more calls to /usr/bin/install, if you're a standard user which is asked for admin username and password... Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/