public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Andrey Repin <anrdaemon@yandex.ru>
To: Corinna Vinschen <cygwin@cygwin.com>, cygwin@cygwin.com
Subject: Re: [ANNOUNCEMENT] Updated: Cygwin 2.2.0-1
Date: Wed, 05 Aug 2015 16:50:00 -0000	[thread overview]
Message-ID: <1324339149.20150805194114@yandex.ru> (raw)
In-Reply-To: <20150805075435.GP17917@calimero.vinschen.de>

Greetings, Corinna Vinschen!

> 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

> Right now, when started from a non-Cygwin process, Cygwin takes the
> value of $HOME and simply calls the Win32->POSIX conversion function.
> It does so for a long time, but is that right?  Especially if %HOME% is
> a non-absolute == relative path, the resulting POSIX value of $HOME
> depends on the current directory when starting Cygwin.

> This sounds like a terrible idea to me.

Agree.

> Together with cases like https://cygwin.com/ml/cygwin/2015-07/msg00344.html,
> and the fact that $HOME has no meaning in native Windows (HOMEPATH/HOMEDRIVE
> instead) I'm inclined to think that any incoming $HOME should make sense
> from a POSIX POV, otherwise we take the value from the passwd DB as defined
> by /etc/nsswitch.conf.

> Does anybody have a *good* reason *not* to change this?

For me, it wouldn't change a thing. My %HOME% is pointed to %USERPROFILE%, so
does the nsswitch.conf do the same for Cygwin.
Either way the $HOME is pulled from will point to the same place.

>> That's why I offered to ignore the issue.  That also needs nothing to be
>> done by me, which is an added benefit.  :-)

> That may be the way to go as soon as Cygwin is doing the right thing :}

:)
Do The Right Thing(tm)!


-- 
With best regards,
Andrey Repin
Wednesday, August 5, 2015 19:34:27

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

  parent reply	other threads:[~2015-08-05 16:50 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-03 13:28 Corinna Vinschen
2015-08-03 18:43 ` Thomas Wolff
2015-08-03 19:29   ` Corinna Vinschen
2015-08-04  7:51     ` Achim Gratz
2015-08-04 18:14       ` Warren Young
2015-08-04 18:44         ` Thomas Wolff
2015-08-04 18:53         ` Achim Gratz
2015-08-05  7:54           ` Corinna Vinschen
2015-08-05  9:09             ` Thomas Wolff
2015-08-05 10:12               ` Corinna Vinschen
2015-08-06 12:03                 ` Thomas Wolff
2015-08-07  9:04                   ` Corinna Vinschen
2015-08-07 15:27                     ` cyg Simple
2015-08-07 22:19                     ` Thomas Wolff
2015-08-05  9:19             ` Kiehl, Horst
2015-08-05 10:09               ` Corinna Vinschen
2015-08-05 16:50               ` Andrey Repin
2015-08-05 16:50             ` Andrey Repin [this message]
2015-08-05 23:58               ` Nicholas Clark
2015-08-06  0:20                 ` Andrey Repin
2015-08-06  0:35                   ` Nicholas Clark
2015-08-06 11:35                     ` Andrey Repin
2015-08-07 15:16             ` cyg Simple

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1324339149.20150805194114@yandex.ru \
    --to=anrdaemon@yandex.ru \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).