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:date:from:reply-to:message-id:to:subject
	:in-reply-to:references:mime-version:content-type
	:content-transfer-encoding; q=dns; s=default; b=GFXP28MwRUJagnVh
	eJPH29X4PbV52CAlth26T5kg790hqXTfpD4ntU1SdhPyckUHqVsPoNviuQL9VtyR
	kAdM4hp0LBiVLEUFTAFkwd3lwCBIiYV4iHpYUICTKy0cjBCGvsBGtZNA9doao1R3
	QM+8KTWVfPqwUu0L+8cCAhv5EbM=
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:date:from:reply-to:message-id:to:subject
	:in-reply-to:references:mime-version:content-type
	:content-transfer-encoding; s=default; bh=kFi2YSCvBewj0USTQWwwiB
	RmWOg=; b=LWjcXt12LYMNchq71yl3YM1NPCKqis9V3qBN4HZeR1MRnE3FAJYRwx
	IU80FzN1lRC9oftTDxbs/PTRHLbfitEEqlRNZE0k1NZspL9klnDy/vCfhwblKUU7
	PZ6U2CaSGcpC8jTJyIkyjiWPnXpWLe2g+gzjyJNVPIVOAqwRqlK7A=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=2.0 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 spammy=H*F:D*yandex.ru, yandexru, UD:yandex.ru, yandex.ru
X-HELO: forward3j.cmail.yandex.net
Authentication-Results: smtp3j.mail.yandex.net; dkim=pass header.i=@yandex.ru
X-Yandex-Suid-Status: 1 0,1 0
Date: Sat, 27 Aug 2016 20:44:05 +0300
From: Andrey Repin <anrdaemon@yandex.ru>
Reply-To: cygwin@cygwin.com
Message-ID: <1765635230.20160827204405@yandex.ru>
To: Christian Franke <Christian.Franke@t-online.de>, cygwin@cygwin.com
Subject: Re: Proposal for new cygwin.bat which is independent from install directory
In-Reply-To: <57C1CCCD.2060007@t-online.de>
References: <57C06CFA.4060405@t-online.de> <1974732522.20160826193931@yandex.ru>   <daq2sb15dt33v54ekoc1p8f4snvepa0og0@4ax.com> <57C1788B.2010705@t-online.de>  <1545876997.20160827191030@yandex.ru> <57C1CCCD.2060007@t-online.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

Greetings, Christian Franke!

> Andrey Repin wrote:
>>> Hmm... therefore it is also better to change the last line to:
>>>     .\bash --login -i
>> "%~dp0bin\bash.exe" --login -i

> Changing the directory before bash is run is a security measure because 
> the current directory may be in DLL search path.

And?

> I guess this is one reason why the cygwin.bat file created by setup.exe also
> does this.

I'm starting an application by its full path.


-- 
With best regards,
Andrey Repin
Saturday, August 27, 2016 20:42:53

Sorry for my terrible english...


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

