X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:date:from:mime-version:to:subject
	:references:in-reply-to:content-type:content-transfer-encoding;
	 q=dns; s=default; b=DfvnePjlLg8XHPifn2VOZukd7jop3WswURj855JvE3a
	V9dWiePloAHdKCrf6IQlk/y69RLIjSh5xk0QVf/CtCAEaV57udmDBW9g5NSj4XAa
	lk5nk5qa+YZrqPIAd+PRgWvJ5+zvooancYUEOE9mnj/rHsS+8JgJBklZSDIbfEMs
	=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:date:from:mime-version:to:subject
	:references:in-reply-to:content-type:content-transfer-encoding;
	 s=default; bh=EIUBM1QSm6jLMIvDFaYAgC0JSCo=; b=OiPcbypcjDUmyf5ja
	MGqcyZxGPtutYjcCFIN7evzSU+22k4UeWIWMaCC8gYjErwYm3JoIil2hB1zN9pE+
	uUq+yTdNf2TREZPKK1EPfKDAwSKUw/Q6dP08ktJ2gEwgTMRMGgNMbM9dP8pPkbWy
	keZOAmaMCG9LKzqSTAz95/rIFI=
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
X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE,SPF_HELO_PASS,TW_NL autolearn=ham version=3.3.1
Message-ID: <515DA0D9.7050209@towo.net>
Date: Thu, 04 Apr 2013 17:48:41 +0200
From: Thomas Wolff <towo@towo.net>
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130307 Thunderbird/17.0.4
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: winln for native symlinks
References: <515BD718.8080605@dancol.org> <515BE1BF.5010803@towo.net> <515BE36F.6030701@dancol.org>
In-Reply-To: <515BE36F.6030701@dancol.org>
X-TagToolbar-Keys: D20130404174841403
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 8bit

Am 03.04.2013 10:08, schrieb Daniel Colascione:
> On 4/3/2013 1:01 AM, Thomas Wolff wrote:
>> Am 03.04.2013 09:15, schrieb Daniel Colascione:
>>> In light of the recent discussion on the developers list about native symlinks,
>>> I'd like to suggest including my winln program (which I posted a while ago on
>>> this list, and which I've attached to this message) in the cygutils package.
>>> It's a drop-in replacement for GNU ld.
>> I'm getting this:
>>
>> winln.c: In function ‘do_link’:
>> winln.c:343:21: error: ‘SYMBOLIC_LINK_FLAG_DIRECTORY’ undeclared (first use in
>> this function)
> Thanks. It'd been a while since I've compiled the program. Our old headers must
> have had a bug that led to defining that flag even for OS versions that didn't
> actually support symbolic links. Changing _WIN32_WINNT to 0x600 (Vista) made the
> program compile again.

It shows this error message:
winln: you don't permission to create symbolic links. Run, as administrator,
winln:   editrights -a SeCreateSymbolicLinkPrivilege -a $YOUR_USER
which should be fixed somehow like this:
You don't have permission to create symbolic links. Run, as administrator,
         editrights -a SeCreateSymbolicLinkPrivilege -u $USER
Moreover, this advice does not help. Even after having issued this
command as administrator, winln -s still works as administrator only.
------
Thomas


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

