From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28734 invoked by alias); 2 Apr 2014 16:54:14 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 28725 invoked by uid 89); 2 Apr 2014 16:54:14 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 02 Apr 2014 16:54:13 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s32Gs1sr025740 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 2 Apr 2014 12:54:01 -0400 Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s32Gs0Me016117; Wed, 2 Apr 2014 12:54:00 -0400 Message-ID: <533C40A7.1040502@redhat.com> Date: Wed, 02 Apr 2014 16:54:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7 MIME-Version: 1.0 To: Eli Zaretskii CC: Yao Qi , gdb-patches@sourceware.org Subject: Re: [PATCH] Return argv0-symlink.exp early if gdb can't load symlink References: <1396428218-31822-1-git-send-email-yao@codesourcery.com> <533BD0D5.4000408@codesourcery.com> <83txabbtdl.fsf@gnu.org> In-Reply-To: <83txabbtdl.fsf@gnu.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SW-Source: 2014-04/txt/msg00033.txt.bz2 On 04/02/2014 05:15 PM, Eli Zaretskii wrote: >> Date: Wed, 2 Apr 2014 16:56:53 +0800 >> From: Yao Qi >> >> Looks native windows symlinks are created on some versions of windows >> with some features turned on, so we can't skip this test by checking >> triplet of host. >> http://cygwin.com/cygwin-ug-net/using.html#pathnames-symlinks > > Creating native symlinks generally require elevation on Windows. So > unless Cygwin somehow managed to work around this (I didn't try, so I > don't know), you will get UAC prompts when you try creating symlinks. > > Therefore, I don't recommend to go there. > I suspect it's the specific tool (mklink, perhaps?) that tries to create symlinks that somehow runs a UAC prompt. Cygwin's docs of winsymlinks:nativestrict, at least don't suggest any prompt. They say the symlink(2) system call will fail immediately if Cygwin fails to create a native symlink for some reason. On the permissions, according to: http://cygwin.com/ml/cygwin/2011-04/msg00088.html > They don't require administrator privilege per se: just SeCreateSymbolicLinkPrivilege, > which can be granted to normal user accounts via local security policy. The easiest way to > grant SeCreateSymbolicLinkPrivilege is to start gpedit.msc, go down to > "Windows Settings"->"Security Settings"->"Local Policies"->"User Rights Assignment", > then find "Create symbolic links" and add whatever users and groups you want[1]. Assuming not having the permissions doesn't cause prompts resulting in testsuite run hangs, I think it's OK. If the user doesn't have the permissions, the symlink fails to be created and the tests require symlinks end up UNRESOLVED or UNTESTED. -- Pedro Alves