delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/08/05/12:50:33

X-Recipient: archive-cygwin AT delorie DOT 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=tatkRqywY2RIWcNy
7lqu3j0sbvyFofG+3wuDrnaTnyESpiolU/4Phr+9gRbMEpM6pomhvDCBQzyxbFRC
qgvXBTElvLFHAL33/CUyDuSx5ZRGEwb2+78KgdJnis5DPfUg5Pm1JEzxT0pcFQ+I
OL9hZXKW7UNKGyIg+LCfP4rYbFc=
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=2IhBy+YYDhDQJeTKLb5fx6
YGA64=; b=K5UJ8hZqHJn9Fw1DmGWP3N28fc1uUM3ffYnYq0fvWmOv1wfBLs3Weo
R5y5ck+DYIheWA3tLaySZDvlG8Y0ZpnYdxXPoM2UmkTNHR+WTUB5V3Nwd0E68Jf3
tBe0WYySwWP1jVxlTe2KmrGbSQu9saK0P85E7Za7adshDEqV6InpI=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=4.5 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT,SPF_SOFTFAIL autolearn=no version=3.3.2
X-HELO: smtp.ht-systems.ru
Date: Wed, 5 Aug 2015 19:46:46 +0300
From: Andrey Repin <anrdaemon AT yandex DOT ru>
Reply-To: cygwin AT cygwin DOT com
Message-ID: <35586722.20150805194646@yandex.ru>
To: "Kiehl, Horst" <h DOT p DOT kiehl AT fz-juelich DOT de>, cygwin AT cygwin DOT com
Subject: Re: [ANNOUNCEMENT] Updated: Cygwin 2.2.0-1
In-Reply-To: <3f1d63803e3546f28d65e0fc7957a204@IBTEXCHMB1.ibt.kfa-juelich.de>
References: <announce DOT 20150803131950 DOT GA18878 AT calimero DOT vinschen DOT de> <55BFB64C DOT 1010802 AT towo DOT net> <20150803192940 DOT GA19315 AT calimero DOT vinschen DOT de> <loom DOT 20150804T094839-714 AT post DOT gmane DOT org> <895515CC-6BB7-41E7-AEA5-30FBBE071153 AT etr-usa DOT com> <87wpxac2bj DOT fsf AT Rainer DOT invalid> <20150805075435 DOT GP17917 AT calimero DOT vinschen DOT de> <3f1d63803e3546f28d65e0fc7957a204 AT IBTEXCHMB1 DOT ibt DOT kfa-juelich DOT de>
MIME-Version: 1.0
X-IsSubscribed: yes

Greetings, Kiehl, Horst!

> Corinna Vinschen wrote:

>> The problem the fix was *supposed* to fix (but it didn't) was to disallow
>> incoming $HOME values which are non-POSIX or non-absolute paths.  These
>> $HOME values should be disregarded.
>> 
>> So the idea was:
>> 
>>   set HOME=foo                <- ignored, set HOME from passwd DB entry
>>   set HOME=C:/foo     <- same
>>   set HOME=//foo/bar  <- same
>>   set HOME=/foo/bar   <- valid, taken

> The second case, IMHO, *is* an absolute path in the context of Windows:
> C:/foo
> So my assumption as a user would be that Cygwin would use this value for
> HOME in its (cygpath-) translated form: /cygdrive/c/foo

> This way I could continue to use my Windows profile directory
> (%USERPROFILE%) as my Cygwin home directory (with the definition of
> HOME=%USERPROFILE% and the symbolic link /home -> cygdrive/c/Users to
> keep ssh working)

Use fstab ?

C:/Users /home bind noacl,binary,exec,posix=0 0 0

> as well as e.g. continue to use the Windows port of
> GNU Emacs which consults the HOME variable too.

> In other words, if Cygwin would continue to use HOME=/cygdrive/c/foo as
> the conversion of HOME=C:/foo, this would follow the principle of least
> surprise, IMHO.

> (Just thinking ... would even the third case (HOME=//foo/bar) be a valid
> scenario? Does Cygwin "technically allow" the home directory to be on
> the network? If there is a POSIX-compliant translation of //foo/bar, it
> might be a better choice than ignoring the value.)

Technically, there's no restriction.
And I can imagine an AD environment, where it is actually desirable to have it
on the network.


-- 
With best regards,
Andrey Repin
Wednesday, August 5, 2015 19:43:02

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019